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 |
9 |
456 |
23 |
24.06 |
1.19 |
bin-true |
no-host |
680 |
541 |
2,199 |
820 |
3.23 |
1.21 |
configure.cpython |
no-host |
14,993 |
15,001 |
28,423 |
15,365 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,816 |
3,726 |
4,663 |
3,900 |
1.22 |
1.02 |
configure.tcc |
no-host |
47 |
41 |
193 |
49 |
4.09 |
1.05 |
configure.util-linux |
no-host |
14,092 |
14,819 |
31,047 |
14,697 |
2.20 |
1.04 |
configure.yash |
no-host |
1,820 |
1,778 |
2,456 |
1,867 |
1.35 |
1.03 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
29.38 |
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,540 |
1,094 |
23,042 |
3,174 |
9.07 |
1.25 |
bin-true |
no-host |
104,331 |
65,404 |
744,969 |
128,620 |
7.14 |
1.23 |
configure.cpython |
no-host |
2,225,117 |
2,237,666 |
6,052,769 |
2,238,204 |
2.72 |
1.01 |
configure.ocaml |
no-host |
410,553 |
391,160 |
634,209 |
413,619 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,512 |
5,482 |
22,958 |
6,964 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,105,717 |
2,253,542 |
5,289,903 |
2,011,806 |
2.51 |
0.96 |
configure.yash |
no-host |
256,680 |
244,086 |
382,992 |
259,118 |
1.49 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,628 |
339 |
24.03 |
2.25 |
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,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.7 |
7.9 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,365 |
1 |
61 |
15.9 |
27.5 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,697 |
3 |
61 |
22.2 |
30.1 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,900 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,867 |
1 |
2 |
2.6 |
24.5 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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 |
9 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
456 |
408 |
51 |
21.3 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
680 |
493 |
222 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
419 |
132 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,199 |
1,451 |
996 |
17.1 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
568 |
267 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,993 |
9,055 |
6,336 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,001 |
9,021 |
6,398 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,423 |
17,413 |
12,798 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,365 |
8,963 |
6,663 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,816 |
1,622 |
1,227 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,726 |
1,599 |
1,147 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,663 |
2,202 |
1,659 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,900 |
1,662 |
1,275 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
32 |
15 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
30 |
12 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
136 |
60 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
31 |
19 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,092 |
8,877 |
5,711 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,819 |
9,053 |
6,258 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,047 |
20,959 |
11,126 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,697 |
8,870 |
6,030 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,820 |
1,109 |
721 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,778 |
1,009 |
773 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,456 |
1,473 |
1,025 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,867 |
1,083 |
787 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
22 |
25 |
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,540 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,042 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,331 |
0 |
0 |
0 |
8 |
0 |
1,985 |
71 |
bash |
9 |
no-host |
bin-true |
65,404 |
0 |
0 |
0 |
8 |
0 |
1,983 |
37 |
dash |
17 |
no-host |
bin-true |
744,969 |
0 |
0 |
0 |
8 |
0 |
1,990 |
129 |
osh-cpython |
25 |
no-host |
bin-true |
128,620 |
0 |
0 |
0 |
16 |
0 |
1,983 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,117 |
0 |
0 |
0 |
32,928 |
0 |
14,643 |
1,021 |
bash |
10 |
no-host |
configure.cpython |
2,237,666 |
0 |
0 |
0 |
32,992 |
0 |
14,694 |
1,073 |
dash |
18 |
no-host |
configure.cpython |
6,052,769 |
0 |
0 |
0 |
27,512 |
0 |
13,372 |
1,142 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,238,204 |
0 |
0 |
0 |
27,520 |
0 |
13,359 |
1,033 |
osh-native |
4 |
no-host |
configure.ocaml |
410,553 |
0 |
0 |
0 |
5,120 |
0 |
1,965 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,160 |
0 |
0 |
0 |
5,112 |
0 |
1,946 |
150 |
dash |
20 |
no-host |
configure.ocaml |
634,209 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
180 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,619 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
155 |
osh-native |
5 |
no-host |
configure.tcc |
6,512 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,958 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,964 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,717 |
0 |
0 |
0 |
42,400 |
0 |
18,552 |
1,020 |
bash |
11 |
no-host |
configure.util-linux |
2,253,542 |
0 |
0 |
0 |
42,584 |
0 |
17,454 |
1,129 |
dash |
19 |
no-host |
configure.util-linux |
5,289,903 |
14 |
0 |
0 |
39,120 |
0 |
17,020 |
1,297 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,806 |
0 |
0 |
0 |
39,120 |
0 |
17,266 |
1,022 |
osh-native |
6 |
no-host |
configure.yash |
256,680 |
0 |
0 |
0 |
4,120 |
0 |
871 |
61 |
bash |
14 |
no-host |
configure.yash |
244,086 |
0 |
0 |
0 |
3,720 |
0 |
870 |
98 |
dash |
22 |
no-host |
configure.yash |
382,992 |
0 |
0 |
0 |
3,728 |
0 |
858 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
259,118 |
0 |
0 |
0 |
3,736 |
0 |
854 |
146 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,628 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host