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 |
452 |
22 |
23.71 |
1.15 |
bin-true |
no-host |
654 |
542 |
2,172 |
806 |
3.32 |
1.23 |
configure.cpython |
no-host |
14,680 |
14,790 |
27,908 |
14,842 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,789 |
3,665 |
4,542 |
3,756 |
1.20 |
0.99 |
configure.tcc |
no-host |
47 |
41 |
190 |
48 |
4.07 |
1.03 |
configure.util-linux |
no-host |
13,727 |
14,656 |
30,457 |
14,093 |
2.22 |
1.03 |
configure.yash |
no-host |
1,788 |
1,735 |
2,382 |
1,769 |
1.33 |
0.99 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
34.93 |
2.13 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,552 |
1,109 |
23,173 |
3,188 |
9.08 |
1.25 |
bin-true |
no-host |
106,343 |
66,337 |
736,911 |
128,477 |
6.93 |
1.21 |
configure.cpython |
no-host |
2,221,091 |
2,240,958 |
6,093,648 |
2,231,539 |
2.74 |
1.00 |
configure.ocaml |
no-host |
410,834 |
390,869 |
636,335 |
413,765 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,501 |
23,132 |
7,002 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,102,474 |
2,258,996 |
5,271,117 |
2,016,326 |
2.51 |
0.96 |
configure.yash |
no-host |
256,265 |
244,483 |
384,264 |
259,182 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,648 |
343 |
24.00 |
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.2 |
6.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
806 |
1 |
2 |
2.7 |
7.7 |
154,662 |
12,890 |
2,792 |
11,730 |
78,321 |
64,611 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,842 |
1 |
57 |
15.9 |
29.1 |
1,773,064 |
49,191 |
28,502 |
101,923 |
908,353 |
762,788 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,093 |
2 |
56 |
22.2 |
30.3 |
2,703,269 |
44,760 |
65,806 |
126,121 |
1,320,491 |
1,256,657 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,756 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,039 |
5,132 |
8,602 |
71,623 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,769 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,229 |
64,449 |
42,657 |
4,603 |
54,507 |
57,119 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
401 |
54 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
654 |
494 |
191 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
406 |
145 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,172 |
1,479 |
945 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
806 |
554 |
269 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
14,680 |
9,001 |
6,071 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,790 |
8,991 |
6,215 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
27,908 |
17,204 |
12,476 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,842 |
8,728 |
6,382 |
29.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,789 |
1,615 |
1,190 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,665 |
1,577 |
1,107 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,542 |
2,174 |
1,564 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,756 |
1,534 |
1,260 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
33 |
14 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
39 |
2 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
137 |
56 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
20 |
29 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,727 |
8,691 |
5,508 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,656 |
9,137 |
6,010 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,457 |
20,392 |
11,091 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,093 |
8,407 |
5,881 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,788 |
944 |
852 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,735 |
1,057 |
682 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,382 |
1,422 |
1,001 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,769 |
1,056 |
714 |
24.4 |
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 |
47 |
26 |
21 |
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,552 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,173 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,343 |
0 |
0 |
0 |
8 |
0 |
1,992 |
50 |
bash |
9 |
no-host |
bin-true |
66,337 |
0 |
0 |
0 |
8 |
0 |
1,984 |
48 |
dash |
17 |
no-host |
bin-true |
736,911 |
0 |
0 |
0 |
8 |
0 |
1,997 |
92 |
osh-cpython |
25 |
no-host |
bin-true |
128,477 |
0 |
0 |
0 |
16 |
0 |
1,980 |
71 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,091 |
2 |
0 |
0 |
32,928 |
0 |
14,443 |
1,106 |
bash |
10 |
no-host |
configure.cpython |
2,240,958 |
0 |
0 |
0 |
32,992 |
0 |
14,501 |
1,199 |
dash |
18 |
no-host |
configure.cpython |
6,093,648 |
0 |
0 |
0 |
27,512 |
0 |
13,386 |
1,147 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,539 |
0 |
0 |
0 |
27,520 |
0 |
13,239 |
975 |
osh-native |
4 |
no-host |
configure.ocaml |
410,834 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
155 |
bash |
12 |
no-host |
configure.ocaml |
390,869 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
163 |
dash |
20 |
no-host |
configure.ocaml |
636,335 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
197 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,765 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
189 |
osh-native |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,501 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,132 |
0 |
0 |
0 |
96 |
0 |
54 |
17 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,002 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,474 |
0 |
0 |
0 |
42,400 |
0 |
18,593 |
960 |
bash |
11 |
no-host |
configure.util-linux |
2,258,996 |
0 |
0 |
0 |
42,584 |
0 |
17,442 |
1,236 |
dash |
19 |
no-host |
configure.util-linux |
5,271,117 |
13 |
0 |
0 |
39,136 |
0 |
17,053 |
1,263 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,326 |
2 |
0 |
0 |
39,120 |
0 |
17,091 |
935 |
osh-native |
6 |
no-host |
configure.yash |
256,265 |
0 |
0 |
0 |
4,120 |
0 |
867 |
77 |
bash |
14 |
no-host |
configure.yash |
244,483 |
0 |
0 |
0 |
3,720 |
0 |
869 |
77 |
dash |
22 |
no-host |
configure.yash |
384,264 |
0 |
0 |
0 |
3,728 |
0 |
856 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
259,182 |
0 |
0 |
0 |
3,736 |
0 |
843 |
86 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,648 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host