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 |
20 |
9 |
471 |
22 |
22 |
24.15 |
1.14 |
bin-true |
no-host |
671 |
537 |
2,254 |
801 |
813 |
3.36 |
1.19 |
configure.cpython |
no-host |
15,137 |
15,162 |
29,157 |
15,737 |
15,325 |
1.93 |
1.04 |
configure.ocaml |
no-host |
3,820 |
3,847 |
4,642 |
3,848 |
3,848 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
197 |
48 |
51 |
4.16 |
1.02 |
configure.util-linux |
no-host |
13,910 |
15,389 |
31,514 |
14,741 |
14,428 |
2.27 |
1.06 |
configure.yash |
no-host |
1,828 |
1,776 |
2,477 |
1,826 |
1,861 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
34.56 |
1.99 |
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,526 |
1,124 |
23,074 |
3,155 |
3,128 |
9.13 |
1.25 |
bin-true |
no-host |
104,331 |
65,413 |
755,173 |
125,109 |
129,197 |
7.24 |
1.20 |
configure.cpython |
no-host |
1,995,156 |
2,023,143 |
5,969,125 |
2,013,693 |
2,005,081 |
2.99 |
1.01 |
configure.ocaml |
no-host |
373,076 |
353,554 |
607,384 |
376,538 |
375,268 |
1.63 |
1.01 |
configure.tcc |
no-host |
6,104 |
5,016 |
22,987 |
6,520 |
6,469 |
3.77 |
1.07 |
configure.util-linux |
no-host |
1,903,321 |
2,069,263 |
5,112,713 |
1,814,795 |
1,821,572 |
2.69 |
0.95 |
configure.yash |
no-host |
233,864 |
221,778 |
362,930 |
235,216 |
234,967 |
1.55 |
1.01 |
hello-world |
no-host |
148 |
75 |
3,710 |
349 |
342 |
25.07 |
2.36 |
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,709 |
3,709 |
0 |
691 |
1,832 |
1,186 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
801 |
1 |
2 |
2.6 |
8.0 |
154,674 |
12,908 |
2,810 |
9,741 |
78,301 |
66,632 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,737 |
2 |
71 |
14.9 |
29.1 |
1,772,656 |
49,100 |
28,520 |
86,394 |
908,053 |
778,209 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,741 |
3 |
67 |
21.3 |
30.3 |
2,703,392 |
42,737 |
65,824 |
109,656 |
1,320,551 |
1,273,185 |
27,391 |
41 |
131,648 |
1 |
configure.ocaml |
no-host |
3,848 |
1 |
2 |
2.6 |
22.5 |
150,026 |
10,985 |
5,155 |
7,526 |
71,589 |
70,911 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.7 |
30,515 |
30,515 |
0 |
1,517 |
14,756 |
14,242 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,826 |
1 |
2 |
2.6 |
26.4 |
139,683 |
7,953 |
6,612 |
6,333 |
70,261 |
63,089 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,258 |
64,463 |
42,673 |
4,568 |
54,501 |
57,189 |
270 |
3 |
85,346 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,708 |
3,708 |
0 |
692 |
1,832 |
1,184 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
7.7 |
154,673 |
12,773 |
2,748 |
9,742 |
78,301 |
66,630 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,325 |
2 |
70 |
15.0 |
29.3 |
1,772,655 |
44,552 |
28,458 |
86,395 |
908,053 |
778,207 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,428 |
3 |
68 |
21.3 |
30.2 |
2,703,392 |
45,064 |
65,741 |
109,658 |
1,320,551 |
1,273,183 |
27,391 |
41 |
131,482 |
1 |
configure.ocaml |
no-host |
3,848 |
1 |
2 |
2.6 |
22.6 |
150,026 |
10,922 |
5,092 |
7,528 |
71,589 |
70,909 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.6 |
30,515 |
30,515 |
0 |
1,519 |
14,756 |
14,240 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,861 |
1 |
2 |
2.6 |
26.4 |
139,683 |
7,891 |
6,550 |
6,335 |
70,261 |
63,087 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,257 |
64,401 |
42,611 |
4,569 |
54,501 |
57,187 |
270 |
3 |
85,222 |
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 |
9 |
11 |
4.2 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
471 |
410 |
64 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
11 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
671 |
304 |
402 |
3.0 |
bash |
9 |
no-host |
bin-true |
537 |
275 |
272 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,254 |
748 |
1,774 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
801 |
299 |
518 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
813 |
294 |
537 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,137 |
6,781 |
8,778 |
29.0 |
bash |
10 |
no-host |
configure.cpython |
15,162 |
6,909 |
8,703 |
29.2 |
dash |
18 |
no-host |
configure.cpython |
29,157 |
14,627 |
16,464 |
29.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,737 |
6,843 |
9,196 |
29.1 |
osh-native |
34 |
no-host |
configure.cpython |
15,325 |
6,611 |
8,819 |
29.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,820 |
1,313 |
1,541 |
22.6 |
bash |
12 |
no-host |
configure.ocaml |
3,847 |
1,329 |
1,540 |
22.6 |
dash |
20 |
no-host |
configure.ocaml |
4,642 |
1,848 |
2,007 |
22.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,848 |
1,313 |
1,577 |
22.5 |
osh-native |
36 |
no-host |
configure.ocaml |
3,848 |
1,321 |
1,567 |
22.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
22 |
26 |
19.6 |
bash |
13 |
no-host |
configure.tcc |
41 |
18 |
24 |
19.7 |
dash |
21 |
no-host |
configure.tcc |
197 |
134 |
67 |
19.6 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
22 |
27 |
19.7 |
osh-native |
37 |
no-host |
configure.tcc |
51 |
31 |
21 |
19.6 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,910 |
5,796 |
8,598 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,389 |
6,120 |
9,817 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,514 |
17,686 |
14,970 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,741 |
5,803 |
9,147 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,428 |
5,821 |
8,833 |
30.2 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,828 |
912 |
927 |
26.3 |
bash |
14 |
no-host |
configure.yash |
1,776 |
892 |
889 |
26.4 |
dash |
22 |
no-host |
configure.yash |
2,477 |
1,370 |
1,153 |
26.3 |
osh-cpython |
30 |
no-host |
configure.yash |
1,826 |
898 |
933 |
26.4 |
osh-native |
38 |
no-host |
configure.yash |
1,861 |
936 |
930 |
26.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
32 |
17 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
2 |
1 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
2 |
1 |
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,526 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,124 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,074 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,155 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native |
39 |
no-host |
abuild-print-help |
3,128 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,331 |
0 |
0 |
0 |
8 |
0 |
1,975 |
75 |
bash |
9 |
no-host |
bin-true |
65,413 |
0 |
0 |
0 |
8 |
0 |
1,964 |
74 |
dash |
17 |
no-host |
bin-true |
755,173 |
0 |
0 |
0 |
8 |
0 |
1,983 |
172 |
osh-cpython |
25 |
no-host |
bin-true |
125,109 |
0 |
0 |
0 |
16 |
0 |
1,966 |
158 |
osh-native |
33 |
no-host |
bin-true |
129,197 |
0 |
0 |
0 |
16 |
0 |
1,983 |
186 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
1,995,156 |
0 |
0 |
0 |
32,928 |
0 |
14,273 |
1,272 |
bash |
10 |
no-host |
configure.cpython |
2,023,143 |
0 |
0 |
0 |
32,992 |
0 |
14,333 |
1,104 |
dash |
18 |
no-host |
configure.cpython |
5,969,125 |
0 |
0 |
0 |
27,512 |
0 |
13,039 |
1,303 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,013,693 |
0 |
0 |
0 |
27,520 |
0 |
13,044 |
1,247 |
osh-native |
34 |
no-host |
configure.cpython |
2,005,081 |
0 |
0 |
0 |
27,520 |
0 |
13,048 |
1,276 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
373,076 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
179 |
bash |
12 |
no-host |
configure.ocaml |
353,554 |
0 |
0 |
0 |
5,112 |
0 |
1,929 |
189 |
dash |
20 |
no-host |
configure.ocaml |
607,384 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
171 |
osh-cpython |
28 |
no-host |
configure.ocaml |
376,538 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
207 |
osh-native |
36 |
no-host |
configure.ocaml |
375,268 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
200 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,104 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,016 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,987 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,520 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
37 |
no-host |
configure.tcc |
6,469 |
0 |
0 |
0 |
104 |
0 |
45 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
1,903,321 |
0 |
0 |
0 |
42,400 |
0 |
18,473 |
1,279 |
bash |
11 |
no-host |
configure.util-linux |
2,069,263 |
4 |
0 |
0 |
42,584 |
0 |
17,401 |
1,389 |
dash |
19 |
no-host |
configure.util-linux |
5,112,713 |
5 |
0 |
0 |
39,112 |
0 |
17,128 |
1,384 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,814,795 |
0 |
0 |
0 |
39,128 |
0 |
16,978 |
1,229 |
osh-native |
35 |
no-host |
configure.util-linux |
1,821,572 |
0 |
0 |
0 |
39,136 |
0 |
16,867 |
1,287 |
osh-native-souffle |
6 |
no-host |
configure.yash |
233,864 |
0 |
0 |
0 |
4,120 |
0 |
872 |
108 |
bash |
14 |
no-host |
configure.yash |
221,778 |
0 |
0 |
0 |
3,720 |
0 |
865 |
81 |
dash |
22 |
no-host |
configure.yash |
362,930 |
0 |
0 |
0 |
3,728 |
0 |
853 |
109 |
osh-cpython |
30 |
no-host |
configure.yash |
235,216 |
0 |
0 |
0 |
3,736 |
0 |
852 |
99 |
osh-native |
38 |
no-host |
configure.yash |
234,967 |
0 |
0 |
0 |
3,736 |
0 |
852 |
102 |
osh-native-souffle |
0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
75 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,710 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host