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 |
19 |
10 |
468 |
23 |
24.41 |
1.18 |
bin-true |
no-host |
684 |
551 |
2,253 |
841 |
3.29 |
1.23 |
configure.cpython |
no-host |
15,550 |
15,566 |
29,535 |
15,919 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,940 |
3,847 |
4,780 |
3,957 |
1.21 |
1.00 |
configure.tcc |
no-host |
50 |
43 |
198 |
51 |
3.96 |
1.02 |
configure.util-linux |
no-host |
14,545 |
15,412 |
32,641 |
14,920 |
2.24 |
1.03 |
configure.yash |
no-host |
1,874 |
1,845 |
2,551 |
1,984 |
1.36 |
1.06 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
33.90 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,509 |
1,138 |
23,140 |
3,203 |
9.22 |
1.28 |
bin-true |
no-host |
105,324 |
66,430 |
733,163 |
129,218 |
6.96 |
1.23 |
configure.cpython |
no-host |
2,224,330 |
2,241,945 |
6,085,238 |
2,235,524 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,458 |
390,832 |
635,647 |
413,937 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,478 |
22,542 |
6,993 |
3.44 |
1.07 |
configure.util-linux |
no-host |
2,093,587 |
2,262,124 |
5,290,400 |
2,012,583 |
2.53 |
0.96 |
configure.yash |
no-host |
256,087 |
244,800 |
383,758 |
258,967 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
79 |
3,646 |
343 |
24.31 |
2.29 |
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,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
841 |
1 |
2 |
2.7 |
7.7 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,919 |
1 |
65 |
15.9 |
27.3 |
1,772,935 |
49,191 |
28,502 |
101,923 |
908,314 |
762,698 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,920 |
3 |
65 |
22.2 |
30.3 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,957 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,984 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
478 |
3 |
85,314 |
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 |
13 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
468 |
429 |
42 |
21.4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
684 |
499 |
216 |
2.9 |
bash |
9 |
no-host |
bin-true |
551 |
411 |
149 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,490 |
1,021 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
841 |
590 |
266 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
15,550 |
9,194 |
6,741 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,566 |
9,332 |
6,652 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,535 |
18,079 |
13,341 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,919 |
9,247 |
6,931 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,940 |
1,674 |
1,300 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,847 |
1,670 |
1,195 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,780 |
2,296 |
1,693 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,957 |
1,661 |
1,333 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
34 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
19 |
24 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
142 |
59 |
19.7 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
32 |
20 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,545 |
9,128 |
5,899 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,412 |
9,389 |
6,517 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,641 |
21,601 |
12,158 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,920 |
9,084 |
6,021 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,874 |
1,098 |
785 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,845 |
1,057 |
791 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,551 |
1,519 |
1,076 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,984 |
1,127 |
772 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
29 |
20 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
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,509 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,138 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,140 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,324 |
0 |
0 |
0 |
8 |
0 |
1,986 |
73 |
bash |
9 |
no-host |
bin-true |
66,430 |
0 |
0 |
0 |
8 |
0 |
1,989 |
86 |
dash |
17 |
no-host |
bin-true |
733,163 |
0 |
0 |
0 |
8 |
0 |
2,000 |
292 |
osh-cpython |
25 |
no-host |
bin-true |
129,218 |
0 |
0 |
0 |
16 |
0 |
1,988 |
57 |
osh-native |
2 |
no-host |
configure.cpython |
2,224,330 |
0 |
0 |
0 |
32,928 |
0 |
14,488 |
1,052 |
bash |
10 |
no-host |
configure.cpython |
2,241,945 |
1 |
0 |
0 |
32,992 |
0 |
14,554 |
1,033 |
dash |
18 |
no-host |
configure.cpython |
6,085,238 |
2 |
0 |
0 |
27,512 |
0 |
13,285 |
1,276 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,524 |
0 |
0 |
0 |
27,520 |
0 |
13,273 |
1,188 |
osh-native |
4 |
no-host |
configure.ocaml |
410,458 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
159 |
bash |
12 |
no-host |
configure.ocaml |
390,832 |
0 |
0 |
0 |
5,112 |
0 |
1,884 |
128 |
dash |
20 |
no-host |
configure.ocaml |
635,647 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
175 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,937 |
0 |
0 |
0 |
5,120 |
0 |
1,941 |
185 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
10 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,542 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,587 |
1 |
0 |
0 |
42,400 |
0 |
18,572 |
1,143 |
bash |
11 |
no-host |
configure.util-linux |
2,262,124 |
1 |
0 |
0 |
42,584 |
0 |
17,520 |
1,159 |
dash |
19 |
no-host |
configure.util-linux |
5,290,400 |
10 |
0 |
0 |
39,136 |
0 |
17,084 |
1,279 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,012,583 |
1 |
0 |
0 |
39,120 |
0 |
17,063 |
1,045 |
osh-native |
6 |
no-host |
configure.yash |
256,087 |
0 |
0 |
0 |
4,120 |
0 |
867 |
81 |
bash |
14 |
no-host |
configure.yash |
244,800 |
0 |
0 |
0 |
3,720 |
0 |
871 |
78 |
dash |
22 |
no-host |
configure.yash |
383,758 |
0 |
0 |
0 |
3,728 |
0 |
857 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,967 |
0 |
0 |
0 |
3,736 |
0 |
856 |
88 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,646 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host