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 |
20 |
9 |
450 |
22 |
22.95 |
1.13 |
bin-true |
no-host |
669 |
543 |
2,692 |
1,018 |
4.02 |
1.52 |
configure.cpython |
no-host |
14,942 |
15,017 |
28,669 |
15,239 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,766 |
3,787 |
4,611 |
3,825 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
43 |
194 |
50 |
4.04 |
1.03 |
configure.util-linux |
no-host |
13,951 |
14,852 |
30,832 |
14,321 |
2.21 |
1.03 |
configure.yash |
no-host |
1,816 |
1,769 |
2,456 |
1,875 |
1.35 |
1.03 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
32.13 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,517 |
1,092 |
23,045 |
3,176 |
9.16 |
1.26 |
bin-true |
no-host |
105,345 |
66,442 |
881,084 |
244,794 |
8.36 |
2.32 |
configure.cpython |
no-host |
2,221,625 |
2,244,238 |
6,160,051 |
2,231,012 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,554 |
391,261 |
639,443 |
413,434 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,587 |
5,471 |
23,222 |
7,022 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,106,868 |
2,262,260 |
5,329,077 |
2,005,371 |
2.53 |
0.95 |
configure.yash |
no-host |
255,729 |
243,956 |
387,101 |
260,647 |
1.51 |
1.02 |
hello-world |
no-host |
153 |
81 |
3,691 |
349 |
24.12 |
2.28 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
1,018 |
1 |
2 |
2.6 |
8.0 |
202,738 |
13,857 |
2,818 |
9,734 |
106,375 |
86,629 |
3,008 |
4 |
50,000 |
0 |
configure.cpython |
no-host |
15,239 |
1 |
60 |
15.0 |
27.5 |
1,772,714 |
49,108 |
28,528 |
86,381 |
908,127 |
778,206 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,321 |
3 |
59 |
21.3 |
30.3 |
2,703,546 |
42,745 |
65,832 |
109,643 |
1,320,681 |
1,273,222 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,825 |
1 |
2 |
2.6 |
20.6 |
150,084 |
10,993 |
5,163 |
7,513 |
71,663 |
70,908 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,573 |
30,573 |
0 |
1,504 |
14,830 |
14,239 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,875 |
1 |
2 |
2.6 |
24.4 |
142,957 |
10,576 |
6,510 |
6,320 |
72,211 |
64,426 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
20 |
15 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
450 |
407 |
46 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
470 |
229 |
2.9 |
bash |
9 |
no-host |
bin-true |
543 |
420 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,692 |
1,785 |
1,179 |
19.1 |
osh-cpython |
25 |
no-host |
bin-true |
1,018 |
742 |
294 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,942 |
8,916 |
6,423 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,017 |
9,147 |
6,293 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,669 |
17,521 |
13,016 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,239 |
9,028 |
6,481 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,766 |
1,510 |
1,297 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,787 |
1,580 |
1,227 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,611 |
2,273 |
1,543 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,825 |
1,576 |
1,287 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
17 |
32 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
26 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
146 |
51 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,951 |
8,902 |
5,521 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,852 |
9,091 |
6,256 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,832 |
20,711 |
11,205 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,321 |
8,794 |
5,731 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,816 |
1,106 |
717 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,769 |
1,042 |
731 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,456 |
1,521 |
976 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,875 |
1,046 |
833 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,517 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,092 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,045 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,176 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
1 |
no-host |
bin-true |
105,345 |
0 |
0 |
0 |
8 |
0 |
1,986 |
54 |
bash |
9 |
no-host |
bin-true |
66,442 |
0 |
0 |
0 |
8 |
0 |
1,986 |
42 |
dash |
17 |
no-host |
bin-true |
881,084 |
0 |
0 |
0 |
8 |
0 |
1,989 |
224 |
osh-cpython |
25 |
no-host |
bin-true |
244,794 |
0 |
0 |
0 |
16 |
0 |
1,992 |
123 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,625 |
0 |
0 |
0 |
32,928 |
0 |
14,425 |
1,264 |
bash |
10 |
no-host |
configure.cpython |
2,244,238 |
0 |
0 |
0 |
32,992 |
0 |
14,650 |
1,057 |
dash |
18 |
no-host |
configure.cpython |
6,160,051 |
0 |
0 |
0 |
27,512 |
0 |
13,224 |
1,255 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,012 |
0 |
0 |
0 |
27,520 |
0 |
13,250 |
1,110 |
osh-native |
4 |
no-host |
configure.ocaml |
410,554 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
153 |
bash |
12 |
no-host |
configure.ocaml |
391,261 |
0 |
0 |
0 |
5,112 |
0 |
1,921 |
149 |
dash |
20 |
no-host |
configure.ocaml |
639,443 |
1 |
0 |
0 |
5,112 |
0 |
1,852 |
207 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,434 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
179 |
osh-native |
5 |
no-host |
configure.tcc |
6,587 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,222 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,022 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,106,868 |
0 |
0 |
0 |
42,400 |
0 |
18,600 |
1,250 |
bash |
11 |
no-host |
configure.util-linux |
2,262,260 |
0 |
0 |
0 |
42,584 |
0 |
17,407 |
1,118 |
dash |
19 |
no-host |
configure.util-linux |
5,329,077 |
13 |
0 |
0 |
39,112 |
0 |
17,030 |
1,126 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,371 |
0 |
0 |
0 |
39,120 |
0 |
17,108 |
1,003 |
osh-native |
6 |
no-host |
configure.yash |
255,729 |
0 |
0 |
0 |
4,120 |
0 |
872 |
93 |
bash |
14 |
no-host |
configure.yash |
243,956 |
0 |
0 |
0 |
3,720 |
0 |
867 |
88 |
dash |
22 |
no-host |
configure.yash |
387,101 |
0 |
0 |
0 |
3,728 |
0 |
852 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
260,647 |
0 |
0 |
0 |
3,736 |
0 |
850 |
75 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,691 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host