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 |
452 |
22 |
21 |
23.37 |
1.13 |
bin-true |
no-host |
672 |
543 |
2,228 |
812 |
822 |
3.32 |
1.21 |
configure.cpython |
no-host |
14,751 |
14,796 |
28,217 |
14,988 |
15,055 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,776 |
3,693 |
4,575 |
3,798 |
3,773 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
193 |
49 |
48 |
4.04 |
1.02 |
configure.util-linux |
no-host |
13,795 |
14,686 |
30,681 |
14,187 |
14,136 |
2.22 |
1.03 |
configure.yash |
no-host |
1,790 |
1,733 |
2,412 |
1,912 |
1,798 |
1.35 |
1.07 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
33.97 |
1.95 |
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,524 |
1,107 |
23,215 |
3,200 |
3,114 |
9.20 |
1.27 |
bin-true |
no-host |
105,383 |
66,365 |
761,889 |
127,777 |
125,862 |
7.23 |
1.21 |
configure.cpython |
no-host |
2,219,740 |
2,241,342 |
6,205,210 |
2,215,125 |
2,215,963 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,997 |
391,246 |
645,421 |
412,994 |
412,546 |
1.57 |
1.00 |
configure.tcc |
no-host |
6,552 |
5,482 |
23,661 |
6,980 |
6,900 |
3.61 |
1.07 |
configure.util-linux |
no-host |
2,102,766 |
2,265,829 |
5,361,195 |
1,996,813 |
1,991,873 |
2.55 |
0.95 |
configure.yash |
no-host |
256,843 |
244,173 |
387,214 |
257,115 |
258,046 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
81 |
3,736 |
347 |
348 |
24.58 |
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.3 |
3,773 |
3,773 |
0 |
695 |
1,850 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
8.1 |
154,738 |
13,220 |
2,877 |
9,745 |
78,319 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,988 |
1 |
57 |
15.0 |
27.5 |
1,772,720 |
49,854 |
28,587 |
86,398 |
908,071 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,187 |
3 |
57 |
21.3 |
30.3 |
2,703,488 |
29,146 |
65,890 |
109,676 |
1,320,577 |
1,273,235 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,798 |
1 |
2 |
2.6 |
20.4 |
150,094 |
11,051 |
5,221 |
7,532 |
71,604 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,579 |
30,579 |
0 |
1,521 |
14,774 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,912 |
1 |
2 |
2.6 |
24.2 |
139,747 |
8,020 |
6,679 |
6,337 |
70,279 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,322 |
64,530 |
42,740 |
4,572 |
54,519 |
57,231 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,772 |
3,772 |
0 |
696 |
1,850 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
822 |
1 |
2 |
2.6 |
7.5 |
154,737 |
13,063 |
2,815 |
9,746 |
78,319 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,055 |
1 |
57 |
14.9 |
27.4 |
1,772,719 |
49,105 |
28,525 |
86,399 |
908,071 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,136 |
3 |
57 |
21.3 |
30.0 |
2,703,488 |
42,741 |
65,828 |
109,678 |
1,320,577 |
1,273,233 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,773 |
1 |
2 |
2.6 |
20.6 |
150,094 |
10,989 |
5,159 |
7,534 |
71,604 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,523 |
14,774 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,798 |
1 |
2 |
2.6 |
24.5 |
139,747 |
7,958 |
6,617 |
6,339 |
70,279 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,321 |
64,468 |
42,678 |
4,573 |
54,519 |
57,229 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
398 |
57 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
672 |
498 |
204 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
417 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,228 |
1,483 |
1,008 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
560 |
267 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
822 |
573 |
258 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,751 |
8,981 |
6,162 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,796 |
9,062 |
6,148 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,217 |
16,981 |
13,088 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,988 |
8,979 |
6,278 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,055 |
8,833 |
6,403 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,776 |
1,636 |
1,180 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,693 |
1,601 |
1,111 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,575 |
2,158 |
1,627 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,798 |
1,589 |
1,244 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,773 |
1,577 |
1,233 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
23 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
139 |
57 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,795 |
8,679 |
5,588 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,686 |
9,034 |
6,145 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,681 |
20,540 |
11,225 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,187 |
8,620 |
5,767 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,136 |
8,530 |
5,798 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,790 |
1,062 |
734 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,733 |
1,057 |
679 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,412 |
1,427 |
1,027 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,912 |
1,014 |
894 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,798 |
993 |
809 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
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,524 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,215 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native |
39 |
no-host |
abuild-print-help |
3,114 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,383 |
0 |
0 |
0 |
8 |
0 |
1,987 |
56 |
bash |
9 |
no-host |
bin-true |
66,365 |
0 |
0 |
0 |
8 |
0 |
1,994 |
78 |
dash |
17 |
no-host |
bin-true |
761,889 |
0 |
0 |
0 |
8 |
0 |
1,995 |
132 |
osh-cpython |
25 |
no-host |
bin-true |
127,777 |
0 |
0 |
0 |
16 |
0 |
1,996 |
93 |
osh-native |
33 |
no-host |
bin-true |
125,862 |
0 |
0 |
0 |
16 |
0 |
1,997 |
66 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,219,740 |
0 |
0 |
0 |
32,928 |
0 |
14,500 |
1,245 |
bash |
10 |
no-host |
configure.cpython |
2,241,342 |
0 |
0 |
0 |
32,992 |
0 |
14,621 |
1,178 |
dash |
18 |
no-host |
configure.cpython |
6,205,210 |
1 |
0 |
0 |
27,512 |
0 |
13,246 |
1,473 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,215,125 |
0 |
0 |
0 |
27,520 |
0 |
13,259 |
1,124 |
osh-native |
34 |
no-host |
configure.cpython |
2,215,963 |
0 |
0 |
0 |
27,520 |
0 |
13,270 |
940 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,997 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
191 |
bash |
12 |
no-host |
configure.ocaml |
391,246 |
0 |
0 |
0 |
5,112 |
0 |
1,897 |
171 |
dash |
20 |
no-host |
configure.ocaml |
645,421 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
165 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,994 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
181 |
osh-native |
36 |
no-host |
configure.ocaml |
412,546 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
143 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,552 |
0 |
0 |
0 |
104 |
0 |
50 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,661 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,980 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,900 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,766 |
0 |
0 |
0 |
42,400 |
0 |
18,555 |
1,087 |
bash |
11 |
no-host |
configure.util-linux |
2,265,829 |
0 |
0 |
0 |
42,584 |
0 |
17,407 |
1,099 |
dash |
19 |
no-host |
configure.util-linux |
5,361,195 |
11 |
0 |
0 |
39,112 |
0 |
17,065 |
1,164 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,813 |
0 |
0 |
0 |
39,120 |
0 |
16,977 |
1,035 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,873 |
0 |
0 |
0 |
39,136 |
0 |
16,935 |
963 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,843 |
0 |
0 |
0 |
4,120 |
0 |
869 |
88 |
bash |
14 |
no-host |
configure.yash |
244,173 |
0 |
0 |
0 |
3,720 |
0 |
871 |
104 |
dash |
22 |
no-host |
configure.yash |
387,214 |
0 |
0 |
0 |
3,728 |
0 |
851 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
257,115 |
0 |
0 |
0 |
3,736 |
0 |
847 |
73 |
osh-native |
38 |
no-host |
configure.yash |
258,046 |
0 |
0 |
0 |
3,736 |
0 |
851 |
65 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
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,736 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host