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 |
453 |
22 |
21 |
23.65 |
1.16 |
bin-true |
no-host |
675 |
543 |
2,240 |
829 |
816 |
3.32 |
1.23 |
configure.cpython |
no-host |
15,007 |
15,052 |
28,649 |
15,314 |
15,318 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,797 |
3,741 |
4,648 |
3,859 |
3,807 |
1.22 |
1.02 |
configure.tcc |
no-host |
47 |
41 |
194 |
49 |
48 |
4.10 |
1.03 |
configure.util-linux |
no-host |
14,008 |
14,878 |
31,058 |
14,364 |
14,389 |
2.22 |
1.03 |
configure.yash |
no-host |
1,811 |
1,761 |
2,468 |
1,829 |
1,821 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
34.04 |
2.04 |
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,557 |
1,101 |
23,121 |
3,198 |
3,129 |
9.04 |
1.25 |
bin-true |
no-host |
105,289 |
66,485 |
749,400 |
128,101 |
126,853 |
7.12 |
1.22 |
configure.cpython |
no-host |
2,226,983 |
2,240,845 |
6,200,688 |
2,228,390 |
2,229,784 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,375 |
391,184 |
645,743 |
413,217 |
412,640 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,555 |
5,487 |
23,539 |
6,993 |
6,917 |
3.59 |
1.07 |
configure.util-linux |
no-host |
2,101,770 |
2,258,710 |
5,323,398 |
1,996,976 |
1,993,829 |
2.53 |
0.95 |
configure.yash |
no-host |
255,061 |
243,502 |
386,493 |
257,954 |
257,928 |
1.52 |
1.01 |
hello-world |
no-host |
153 |
84 |
3,739 |
348 |
345 |
24.44 |
2.27 |
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,774 |
3,774 |
0 |
694 |
1,851 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
829 |
1 |
2 |
2.6 |
8.1 |
154,739 |
13,219 |
2,876 |
9,744 |
78,320 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,314 |
1 |
62 |
15.0 |
27.5 |
1,772,721 |
49,853 |
28,586 |
86,397 |
908,072 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,364 |
3 |
60 |
21.3 |
30.1 |
2,703,489 |
29,145 |
65,889 |
109,675 |
1,320,578 |
1,273,236 |
27,391 |
41 |
131,778 |
1 |
configure.ocaml |
no-host |
3,859 |
1 |
2 |
2.6 |
20.6 |
150,095 |
11,050 |
5,220 |
7,531 |
71,605 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,580 |
30,580 |
0 |
1,520 |
14,775 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,829 |
1 |
2 |
2.6 |
24.4 |
139,748 |
8,019 |
6,678 |
6,336 |
70,280 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,323 |
64,529 |
42,739 |
4,571 |
54,520 |
57,232 |
270 |
3 |
85,478 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.6 |
3,773 |
3,773 |
0 |
695 |
1,851 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
7.6 |
154,738 |
13,062 |
2,814 |
9,745 |
78,320 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,318 |
1 |
61 |
14.9 |
27.4 |
1,772,720 |
49,104 |
28,524 |
86,398 |
908,072 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,389 |
3 |
60 |
21.3 |
30.4 |
2,703,489 |
42,740 |
65,827 |
109,677 |
1,320,578 |
1,273,234 |
27,391 |
41 |
131,654 |
1 |
configure.ocaml |
no-host |
3,807 |
1 |
2 |
2.6 |
20.6 |
150,095 |
10,988 |
5,158 |
7,533 |
71,605 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,580 |
30,580 |
0 |
1,522 |
14,775 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,821 |
1 |
2 |
2.6 |
24.5 |
139,748 |
7,957 |
6,616 |
6,338 |
70,280 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,322 |
64,467 |
42,677 |
4,572 |
54,520 |
57,230 |
270 |
3 |
85,354 |
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 |
12 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
453 |
388 |
68 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
675 |
497 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
414 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,240 |
1,512 |
988 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
829 |
598 |
247 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
816 |
567 |
264 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,007 |
9,125 |
6,274 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,052 |
9,095 |
6,376 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,649 |
17,066 |
13,417 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,314 |
9,066 |
6,513 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,318 |
9,103 |
6,400 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,797 |
1,616 |
1,221 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,741 |
1,593 |
1,170 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,648 |
2,164 |
1,695 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,859 |
1,646 |
1,253 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,807 |
1,572 |
1,272 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
24 |
24 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
142 |
54 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
39 |
10 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,008 |
8,758 |
5,726 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,878 |
9,331 |
6,051 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,058 |
20,866 |
11,273 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,364 |
8,689 |
5,869 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,389 |
8,698 |
5,890 |
30.4 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,811 |
1,020 |
799 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,761 |
977 |
787 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,468 |
1,564 |
944 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,829 |
1,100 |
733 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,821 |
1,014 |
811 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
36 |
12 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.6 |
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,557 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,121 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,198 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,129 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,289 |
0 |
0 |
0 |
8 |
0 |
1,997 |
76 |
bash |
9 |
no-host |
bin-true |
66,485 |
0 |
0 |
0 |
8 |
0 |
1,988 |
83 |
dash |
17 |
no-host |
bin-true |
749,400 |
0 |
0 |
0 |
8 |
0 |
1,999 |
79 |
osh-cpython |
25 |
no-host |
bin-true |
128,101 |
0 |
0 |
0 |
16 |
0 |
1,991 |
105 |
osh-native |
33 |
no-host |
bin-true |
126,853 |
0 |
0 |
0 |
16 |
0 |
1,990 |
156 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,226,983 |
0 |
0 |
0 |
32,928 |
0 |
14,539 |
1,233 |
bash |
10 |
no-host |
configure.cpython |
2,240,845 |
0 |
0 |
0 |
32,992 |
0 |
14,636 |
1,172 |
dash |
18 |
no-host |
configure.cpython |
6,200,688 |
0 |
0 |
0 |
27,512 |
0 |
13,240 |
1,151 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,390 |
0 |
0 |
0 |
27,520 |
0 |
13,263 |
1,142 |
osh-native |
34 |
no-host |
configure.cpython |
2,229,784 |
0 |
0 |
0 |
27,520 |
0 |
13,325 |
1,147 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,375 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
165 |
bash |
12 |
no-host |
configure.ocaml |
391,184 |
0 |
0 |
0 |
5,112 |
0 |
1,947 |
136 |
dash |
20 |
no-host |
configure.ocaml |
645,743 |
1 |
0 |
0 |
5,112 |
0 |
1,853 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,217 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
198 |
osh-native |
36 |
no-host |
configure.ocaml |
412,640 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
186 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,539 |
0 |
0 |
0 |
96 |
0 |
52 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,917 |
0 |
0 |
0 |
104 |
0 |
47 |
12 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,101,770 |
0 |
0 |
0 |
42,400 |
0 |
18,579 |
1,094 |
bash |
11 |
no-host |
configure.util-linux |
2,258,710 |
1 |
0 |
0 |
42,584 |
0 |
17,503 |
1,151 |
dash |
19 |
no-host |
configure.util-linux |
5,323,398 |
15 |
0 |
0 |
39,112 |
0 |
17,091 |
1,262 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,976 |
1 |
0 |
0 |
39,120 |
0 |
16,966 |
1,180 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,829 |
0 |
0 |
0 |
39,136 |
0 |
16,924 |
1,061 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,061 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
14 |
no-host |
configure.yash |
243,502 |
0 |
0 |
0 |
3,720 |
0 |
870 |
80 |
dash |
22 |
no-host |
configure.yash |
386,493 |
0 |
0 |
0 |
3,728 |
0 |
854 |
103 |
osh-cpython |
30 |
no-host |
configure.yash |
257,954 |
0 |
0 |
0 |
3,736 |
0 |
850 |
84 |
osh-native |
38 |
no-host |
configure.yash |
257,928 |
0 |
0 |
0 |
3,736 |
0 |
848 |
77 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,739 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host