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 |
21 |
10 |
455 |
22 |
22.16 |
1.09 |
bin-true |
no-host |
669 |
547 |
2,232 |
818 |
3.34 |
1.22 |
configure.cpython |
no-host |
15,009 |
15,194 |
28,483 |
15,303 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,815 |
3,733 |
4,622 |
3,835 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
196 |
49 |
4.10 |
1.01 |
configure.util-linux |
no-host |
13,956 |
14,937 |
31,143 |
14,368 |
2.23 |
1.03 |
configure.yash |
no-host |
1,829 |
1,785 |
2,441 |
1,818 |
1.33 |
0.99 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
34.77 |
2.01 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,518 |
1,107 |
23,302 |
3,221 |
9.25 |
1.28 |
bin-true |
no-host |
105,293 |
65,430 |
755,082 |
126,213 |
7.17 |
1.20 |
configure.cpython |
no-host |
2,215,530 |
2,251,275 |
6,141,098 |
2,238,623 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,805 |
391,774 |
639,058 |
413,758 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,532 |
5,497 |
23,215 |
6,968 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,092,414 |
2,263,866 |
5,341,473 |
2,012,245 |
2.55 |
0.96 |
configure.yash |
no-host |
256,266 |
245,216 |
386,254 |
257,790 |
1.51 |
1.01 |
hello-world |
no-host |
149 |
80 |
3,662 |
349 |
24.58 |
2.34 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,303 |
1 |
64 |
15.8 |
27.5 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,368 |
3 |
61 |
22.2 |
30.0 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,835 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,818 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
478 |
3 |
85,324 |
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 |
21 |
18 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
455 |
410 |
47 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
486 |
214 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
421 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,232 |
1,433 |
1,063 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
587 |
247 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,009 |
8,967 |
6,443 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
15,194 |
9,027 |
6,590 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,483 |
17,445 |
12,871 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,303 |
9,135 |
6,437 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,815 |
1,648 |
1,201 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,733 |
1,548 |
1,205 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,622 |
2,264 |
1,564 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,835 |
1,631 |
1,243 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
196 |
147 |
53 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
33 |
16 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,956 |
8,890 |
5,540 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,937 |
9,209 |
6,228 |
30.5 |
dash |
19 |
no-host |
configure.util-linux |
31,143 |
20,694 |
11,541 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,368 |
8,776 |
5,790 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,829 |
1,020 |
815 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,785 |
1,091 |
696 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,441 |
1,523 |
960 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,818 |
1,018 |
805 |
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 |
49 |
20 |
29 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,302 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,221 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,293 |
0 |
0 |
0 |
8 |
0 |
1,993 |
45 |
bash |
9 |
no-host |
bin-true |
65,430 |
0 |
0 |
0 |
8 |
0 |
1,990 |
140 |
dash |
17 |
no-host |
bin-true |
755,082 |
0 |
0 |
0 |
8 |
0 |
1,994 |
143 |
osh-cpython |
25 |
no-host |
bin-true |
126,213 |
0 |
0 |
0 |
16 |
0 |
1,987 |
201 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,530 |
0 |
0 |
0 |
32,928 |
0 |
14,500 |
1,196 |
bash |
10 |
no-host |
configure.cpython |
2,251,275 |
2 |
0 |
0 |
32,992 |
0 |
14,649 |
1,037 |
dash |
18 |
no-host |
configure.cpython |
6,141,098 |
0 |
0 |
0 |
27,512 |
0 |
13,251 |
1,231 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,238,623 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
1,071 |
osh-native |
4 |
no-host |
configure.ocaml |
410,805 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
208 |
bash |
12 |
no-host |
configure.ocaml |
391,774 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
145 |
dash |
20 |
no-host |
configure.ocaml |
639,058 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
168 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,758 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,532 |
0 |
0 |
0 |
104 |
0 |
49 |
12 |
bash |
13 |
no-host |
configure.tcc |
5,497 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,215 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,968 |
0 |
0 |
0 |
104 |
0 |
47 |
6 |
osh-native |
3 |
no-host |
configure.util-linux |
2,092,414 |
2 |
0 |
0 |
42,400 |
0 |
18,614 |
992 |
bash |
11 |
no-host |
configure.util-linux |
2,263,866 |
0 |
0 |
0 |
42,584 |
0 |
17,440 |
1,085 |
dash |
19 |
no-host |
configure.util-linux |
5,341,473 |
7 |
0 |
0 |
39,112 |
0 |
17,062 |
1,235 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,012,245 |
1 |
0 |
0 |
39,128 |
0 |
17,056 |
1,035 |
osh-native |
6 |
no-host |
configure.yash |
256,266 |
0 |
0 |
0 |
4,120 |
0 |
873 |
200 |
bash |
14 |
no-host |
configure.yash |
245,216 |
0 |
0 |
0 |
3,720 |
0 |
867 |
102 |
dash |
22 |
no-host |
configure.yash |
386,254 |
0 |
0 |
0 |
3,728 |
0 |
860 |
109 |
osh-cpython |
30 |
no-host |
configure.yash |
257,790 |
0 |
0 |
0 |
3,736 |
0 |
853 |
77 |
osh-native |
0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,662 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host