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 |
475 |
23 |
24.42 |
1.20 |
bin-true |
no-host |
681 |
554 |
2,266 |
824 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,722 |
15,758 |
29,507 |
15,919 |
1.88 |
1.01 |
configure.ocaml |
no-host |
3,932 |
3,855 |
4,757 |
3,966 |
1.21 |
1.01 |
configure.tcc |
no-host |
50 |
44 |
199 |
52 |
3.96 |
1.04 |
configure.util-linux |
no-host |
14,662 |
15,593 |
32,235 |
15,102 |
2.20 |
1.03 |
configure.yash |
no-host |
1,901 |
1,847 |
2,531 |
1,905 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
30.98 |
1.78 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,511 |
1,120 |
23,495 |
3,196 |
9.36 |
1.27 |
bin-true |
no-host |
102,370 |
66,422 |
755,556 |
126,172 |
7.38 |
1.23 |
configure.cpython |
no-host |
2,215,593 |
2,241,858 |
6,170,386 |
2,232,492 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,581 |
391,068 |
641,663 |
413,735 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,580 |
5,486 |
23,346 |
7,001 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,096,731 |
2,263,892 |
5,349,644 |
2,015,097 |
2.55 |
0.96 |
configure.yash |
no-host |
255,505 |
245,226 |
385,553 |
258,421 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
79 |
3,687 |
344 |
24.26 |
2.26 |
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.3 |
6.2 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,919 |
1 |
65 |
15.8 |
27.5 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,102 |
3 |
66 |
22.2 |
30.3 |
2,703,513 |
44,766 |
65,792 |
126,155 |
1,320,632 |
1,256,726 |
49,086 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,966 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,905 |
1 |
2 |
2.6 |
24.5 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
475 |
416 |
63 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
11 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
681 |
487 |
223 |
2.9 |
bash |
9 |
no-host |
bin-true |
554 |
424 |
137 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,266 |
1,465 |
1,064 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
583 |
252 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,722 |
9,563 |
6,570 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,758 |
9,541 |
6,652 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,507 |
17,921 |
13,500 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,919 |
9,302 |
6,887 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,932 |
1,744 |
1,224 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,855 |
1,675 |
1,199 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,757 |
2,253 |
1,718 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,966 |
1,729 |
1,279 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
28 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
28 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
199 |
156 |
46 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
30 |
22 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,662 |
9,347 |
5,802 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
15,593 |
9,505 |
6,586 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
32,235 |
21,172 |
12,205 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,102 |
9,224 |
6,067 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,901 |
1,085 |
823 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,847 |
1,071 |
777 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,531 |
1,571 |
1,006 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,905 |
1,085 |
825 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
35 |
15 |
17.4 |
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,511 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,120 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,495 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,196 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
102,370 |
0 |
0 |
0 |
8 |
0 |
1,988 |
98 |
bash |
9 |
no-host |
bin-true |
66,422 |
0 |
0 |
0 |
8 |
0 |
1,987 |
35 |
dash |
17 |
no-host |
bin-true |
755,556 |
0 |
0 |
0 |
8 |
0 |
2,001 |
113 |
osh-cpython |
25 |
no-host |
bin-true |
126,172 |
0 |
0 |
0 |
16 |
0 |
1,984 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,593 |
0 |
0 |
0 |
32,928 |
0 |
14,464 |
1,159 |
bash |
10 |
no-host |
configure.cpython |
2,241,858 |
0 |
0 |
0 |
32,992 |
0 |
14,667 |
937 |
dash |
18 |
no-host |
configure.cpython |
6,170,386 |
2 |
0 |
0 |
27,512 |
0 |
13,311 |
1,240 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,492 |
0 |
0 |
0 |
27,520 |
0 |
13,305 |
971 |
osh-native |
4 |
no-host |
configure.ocaml |
410,581 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
161 |
bash |
12 |
no-host |
configure.ocaml |
391,068 |
0 |
0 |
0 |
5,112 |
0 |
1,874 |
143 |
dash |
20 |
no-host |
configure.ocaml |
641,663 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
168 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,735 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
174 |
osh-native |
5 |
no-host |
configure.tcc |
6,580 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,346 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,001 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,731 |
0 |
0 |
0 |
42,408 |
0 |
18,696 |
1,122 |
bash |
11 |
no-host |
configure.util-linux |
2,263,892 |
2 |
0 |
0 |
42,592 |
0 |
17,550 |
1,133 |
dash |
19 |
no-host |
configure.util-linux |
5,349,644 |
13 |
0 |
0 |
39,144 |
0 |
17,060 |
1,342 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,097 |
4 |
0 |
0 |
39,144 |
0 |
17,040 |
1,008 |
osh-native |
6 |
no-host |
configure.yash |
255,505 |
0 |
0 |
0 |
4,120 |
0 |
867 |
77 |
bash |
14 |
no-host |
configure.yash |
245,226 |
0 |
0 |
0 |
3,720 |
0 |
868 |
157 |
dash |
22 |
no-host |
configure.yash |
385,553 |
0 |
0 |
0 |
3,728 |
0 |
854 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,421 |
0 |
0 |
0 |
3,736 |
0 |
852 |
79 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,687 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host