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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
449 |
22 |
21 |
23.26 |
1.13 |
bin-true |
no-host |
680 |
542 |
2,263 |
816 |
807 |
3.33 |
1.20 |
configure.cpython |
no-host |
14,996 |
15,052 |
28,370 |
15,163 |
15,292 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,804 |
3,732 |
4,605 |
3,803 |
3,798 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
195 |
48 |
48 |
4.13 |
1.03 |
configure.util-linux |
no-host |
14,063 |
14,777 |
31,086 |
14,270 |
14,328 |
2.21 |
1.01 |
configure.yash |
no-host |
1,809 |
1,767 |
2,454 |
1,829 |
1,825 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
4 |
33.03 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,133 |
23,345 |
3,189 |
3,106 |
9.21 |
1.26 |
bin-true |
no-host |
105,343 |
65,443 |
767,405 |
126,183 |
124,850 |
7.28 |
1.20 |
configure.cpython |
no-host |
2,218,391 |
2,244,754 |
6,203,982 |
2,231,307 |
2,208,394 |
2.80 |
1.01 |
configure.ocaml |
no-host |
410,856 |
391,069 |
646,200 |
414,224 |
412,818 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,565 |
5,481 |
23,643 |
6,976 |
6,959 |
3.60 |
1.06 |
configure.util-linux |
no-host |
2,101,917 |
2,262,279 |
5,348,844 |
2,005,205 |
1,989,237 |
2.54 |
0.95 |
configure.yash |
no-host |
255,659 |
245,112 |
387,444 |
258,489 |
257,658 |
1.52 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,735 |
347 |
347 |
24.57 |
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.2 |
6.2 |
3,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
8.0 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,163 |
1 |
60 |
15.0 |
27.4 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,270 |
3 |
58 |
21.3 |
30.1 |
2,703,490 |
29,146 |
65,890 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,803 |
1 |
2 |
2.6 |
20.6 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,520 |
14,776 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,829 |
1 |
2 |
2.6 |
24.5 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,571 |
54,521 |
57,232 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
4 |
0 |
0 |
0.2 |
6.0 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
807 |
1 |
2 |
2.6 |
7.7 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,292 |
1 |
60 |
14.9 |
27.3 |
1,772,721 |
49,105 |
28,525 |
86,398 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,328 |
3 |
61 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,798 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,825 |
1 |
2 |
2.6 |
24.4 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,323 |
64,468 |
42,678 |
4,572 |
54,521 |
57,230 |
270 |
3 |
85,356 |
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 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
449 |
405 |
48 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
6 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
7 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
680 |
504 |
207 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
413 |
138 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,263 |
1,492 |
1,033 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
585 |
244 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
807 |
574 |
248 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,996 |
9,144 |
6,257 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,052 |
9,171 |
6,293 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,370 |
17,332 |
12,879 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,163 |
8,955 |
6,478 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,292 |
9,283 |
6,178 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,804 |
1,661 |
1,168 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,732 |
1,571 |
1,179 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,605 |
2,265 |
1,551 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,803 |
1,593 |
1,247 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,798 |
1,675 |
1,156 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
35 |
13 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
38 |
4 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
150 |
48 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
19 |
30 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
22 |
26 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,063 |
8,770 |
5,756 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,777 |
9,202 |
6,056 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,086 |
20,863 |
11,294 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,270 |
8,517 |
5,948 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,328 |
8,526 |
5,991 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,809 |
1,025 |
792 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,767 |
1,087 |
671 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,454 |
1,534 |
961 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,829 |
1,119 |
714 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,825 |
1,040 |
788 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
31 |
18 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
4 |
4 |
0 |
6.0 |
osh-native-souffle |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,345 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,189 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,106 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,343 |
0 |
0 |
0 |
8 |
0 |
1,992 |
165 |
bash |
9 |
no-host |
bin-true |
65,443 |
0 |
0 |
0 |
8 |
0 |
1,989 |
55 |
dash |
17 |
no-host |
bin-true |
767,405 |
0 |
0 |
0 |
8 |
0 |
1,997 |
148 |
osh-cpython |
25 |
no-host |
bin-true |
126,183 |
0 |
0 |
0 |
16 |
0 |
1,991 |
83 |
osh-native |
33 |
no-host |
bin-true |
124,850 |
0 |
0 |
0 |
16 |
0 |
1,992 |
84 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,391 |
2 |
0 |
0 |
32,928 |
0 |
14,504 |
991 |
bash |
10 |
no-host |
configure.cpython |
2,244,754 |
0 |
0 |
0 |
32,992 |
0 |
14,581 |
1,014 |
dash |
18 |
no-host |
configure.cpython |
6,203,982 |
0 |
0 |
0 |
27,512 |
0 |
13,264 |
1,261 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,307 |
0 |
0 |
0 |
27,520 |
0 |
13,304 |
1,219 |
osh-native |
34 |
no-host |
configure.cpython |
2,208,394 |
1 |
0 |
0 |
27,520 |
0 |
13,204 |
1,055 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,856 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
167 |
bash |
12 |
no-host |
configure.ocaml |
391,069 |
0 |
0 |
0 |
5,112 |
0 |
1,932 |
163 |
dash |
20 |
no-host |
configure.ocaml |
646,200 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
148 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,224 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
186 |
osh-native |
36 |
no-host |
configure.ocaml |
412,818 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
145 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,565 |
0 |
0 |
0 |
104 |
0 |
49 |
14 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,643 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
46 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,959 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,101,917 |
0 |
0 |
0 |
42,400 |
0 |
18,555 |
1,125 |
bash |
11 |
no-host |
configure.util-linux |
2,262,279 |
1 |
0 |
0 |
42,584 |
0 |
17,470 |
1,173 |
dash |
19 |
no-host |
configure.util-linux |
5,348,844 |
12 |
0 |
0 |
39,112 |
0 |
17,118 |
1,237 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,205 |
1 |
0 |
0 |
39,120 |
0 |
16,963 |
946 |
osh-native |
35 |
no-host |
configure.util-linux |
1,989,237 |
0 |
0 |
0 |
39,128 |
0 |
16,964 |
1,086 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,659 |
0 |
0 |
0 |
4,120 |
0 |
871 |
92 |
bash |
14 |
no-host |
configure.yash |
245,112 |
0 |
0 |
0 |
3,720 |
0 |
870 |
73 |
dash |
22 |
no-host |
configure.yash |
387,444 |
0 |
0 |
0 |
3,728 |
0 |
854 |
281 |
osh-cpython |
30 |
no-host |
configure.yash |
258,489 |
0 |
0 |
0 |
3,736 |
0 |
850 |
76 |
osh-native |
38 |
no-host |
configure.yash |
257,658 |
0 |
0 |
0 |
3,736 |
0 |
852 |
80 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,735 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host