oilshell.org
OSH Runtime Performance
Source code: benchmarks/osh-runtime.sh
Raw files
Elapsed Time by Shell (milliseconds)
Some benchmarks call many external tools, while some exercise the shell
interpreter itself.
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
9 |
450 |
23 |
23.94 |
1.20 |
bin-true |
no-host |
675 |
541 |
2,222 |
814 |
3.29 |
1.21 |
configure.cpython |
no-host |
15,113 |
15,224 |
28,829 |
15,411 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,824 |
3,776 |
4,657 |
3,853 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
192 |
49 |
4.06 |
1.03 |
configure.util-linux |
no-host |
14,142 |
15,045 |
31,370 |
14,529 |
2.22 |
1.03 |
configure.yash |
no-host |
1,828 |
1,800 |
2,437 |
1,834 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.02 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,529 |
1,095 |
23,217 |
3,215 |
9.18 |
1.27 |
bin-true |
no-host |
107,350 |
65,439 |
750,085 |
126,177 |
6.99 |
1.18 |
configure.cpython |
no-host |
2,221,987 |
2,242,334 |
6,138,276 |
2,228,620 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,751 |
391,161 |
637,513 |
414,187 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,486 |
23,255 |
6,987 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,107,844 |
2,262,127 |
5,336,101 |
2,014,318 |
2.53 |
0.96 |
configure.yash |
no-host |
256,221 |
244,468 |
385,032 |
259,386 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,655 |
344 |
23.89 |
2.25 |
Memory Usage (Max Resident Set Size in MB)
Memory usage is measured in MB (powers of 10), not MiB (powers of 2).
GC Stats
workload |
host name |
elapsed ms |
max gc millis |
total gc millis |
allocated MB |
max rss MB |
num allocated |
num live |
max survived |
num in heap |
num in pool 1 |
num in pool 2 |
num gc points |
num gc done |
gc threshold |
num growths |
hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.2 |
3,717 |
3,717 |
0 |
684 |
1,869 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.7 |
7.9 |
154,682 |
12,988 |
2,795 |
11,737 |
78,338 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,411 |
2 |
65 |
15.8 |
27.4 |
1,772,598 |
49,193 |
28,504 |
101,770 |
908,045 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,529 |
3 |
63 |
22.2 |
29.9 |
2,703,262 |
44,762 |
65,788 |
126,121 |
1,320,489 |
1,256,652 |
49,081 |
41 |
131,576 |
1 |
configure.ocaml |
no-host |
3,853 |
1 |
2 |
2.7 |
20.4 |
150,024 |
11,041 |
5,134 |
8,602 |
71,623 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,517 |
30,517 |
0 |
1,599 |
14,793 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,834 |
1 |
2 |
2.6 |
24.5 |
139,681 |
7,960 |
6,596 |
7,554 |
70,295 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.7 |
116,260 |
64,451 |
42,659 |
4,609 |
54,538 |
57,113 |
478 |
3 |
85,318 |
1 |
rusage Details
task id |
host name |
workload |
elapsed ms |
user ms |
sys ms |
max rss MB |
shell label |
7 |
no-host |
abuild-print-help |
19 |
16 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
411 |
42 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
675 |
480 |
222 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
420 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,222 |
1,451 |
1,030 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
573 |
255 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,113 |
8,977 |
6,535 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,224 |
9,183 |
6,465 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,829 |
17,632 |
13,049 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,411 |
9,068 |
6,605 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,824 |
1,633 |
1,230 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,776 |
1,555 |
1,241 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,657 |
2,179 |
1,682 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,853 |
1,667 |
1,224 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
29 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
152 |
44 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
38 |
11 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,142 |
8,892 |
5,725 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,045 |
9,197 |
6,339 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,370 |
20,939 |
11,513 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,529 |
8,769 |
5,955 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,828 |
1,053 |
784 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,800 |
1,001 |
794 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,437 |
1,549 |
930 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,834 |
965 |
873 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
28 |
20 |
17.0 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
More Details
task id |
host name |
workload |
minor faults |
major faults |
swaps |
in block |
out block |
signals |
voluntary ctx |
involuntary ctx |
shell label |
7 |
no-host |
abuild-print-help |
2,529 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,217 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,215 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,350 |
0 |
0 |
0 |
8 |
0 |
1,991 |
67 |
bash |
9 |
no-host |
bin-true |
65,439 |
0 |
0 |
0 |
8 |
0 |
1,986 |
63 |
dash |
17 |
no-host |
bin-true |
750,085 |
0 |
0 |
0 |
8 |
0 |
1,991 |
87 |
osh-cpython |
25 |
no-host |
bin-true |
126,177 |
0 |
0 |
0 |
16 |
0 |
1,985 |
67 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,987 |
0 |
0 |
0 |
32,928 |
0 |
14,500 |
1,204 |
bash |
10 |
no-host |
configure.cpython |
2,242,334 |
0 |
0 |
0 |
32,992 |
0 |
14,637 |
1,108 |
dash |
18 |
no-host |
configure.cpython |
6,138,276 |
0 |
0 |
0 |
27,512 |
0 |
13,248 |
1,194 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,620 |
0 |
0 |
0 |
27,520 |
0 |
13,284 |
1,018 |
osh-native |
4 |
no-host |
configure.ocaml |
410,751 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
149 |
bash |
12 |
no-host |
configure.ocaml |
391,161 |
0 |
0 |
0 |
5,112 |
0 |
1,938 |
136 |
dash |
20 |
no-host |
configure.ocaml |
637,513 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
191 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,187 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
179 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,255 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,987 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,107,844 |
0 |
0 |
0 |
42,408 |
0 |
18,696 |
1,162 |
bash |
11 |
no-host |
configure.util-linux |
2,262,127 |
0 |
0 |
0 |
42,592 |
0 |
17,421 |
1,166 |
dash |
19 |
no-host |
configure.util-linux |
5,336,101 |
9 |
0 |
0 |
39,112 |
0 |
17,058 |
1,350 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,318 |
1 |
0 |
0 |
39,120 |
0 |
17,105 |
1,000 |
osh-native |
6 |
no-host |
configure.yash |
256,221 |
0 |
0 |
0 |
4,120 |
0 |
867 |
67 |
bash |
14 |
no-host |
configure.yash |
244,468 |
0 |
0 |
0 |
3,720 |
0 |
866 |
81 |
dash |
22 |
no-host |
configure.yash |
385,032 |
0 |
0 |
0 |
3,728 |
0 |
857 |
116 |
osh-cpython |
30 |
no-host |
configure.yash |
259,386 |
0 |
0 |
0 |
3,736 |
0 |
851 |
79 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,655 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host