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 |
459 |
22 |
23.92 |
1.14 |
| bin-true |
no-host |
700 |
548 |
2,700 |
1,028 |
3.86 |
1.47 |
| configure.cpython |
no-host |
15,496 |
15,257 |
28,632 |
15,367 |
1.85 |
0.99 |
| configure.ocaml |
no-host |
3,870 |
3,749 |
4,727 |
3,800 |
1.22 |
0.98 |
| configure.tcc |
no-host |
48 |
41 |
194 |
50 |
4.02 |
1.04 |
| configure.util-linux |
no-host |
14,250 |
14,926 |
31,332 |
14,529 |
2.20 |
1.02 |
| configure.yash |
no-host |
1,840 |
1,776 |
2,488 |
1,852 |
1.35 |
1.01 |
| hello-world |
no-host |
2 |
1 |
49 |
3 |
31.32 |
1.91 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
2,538 |
1,141 |
23,044 |
3,183 |
9.08 |
1.25 |
| bin-true |
no-host |
107,339 |
66,417 |
883,816 |
246,807 |
8.23 |
2.30 |
| configure.cpython |
no-host |
2,215,564 |
2,238,695 |
6,178,021 |
2,229,963 |
2.79 |
1.01 |
| configure.ocaml |
no-host |
410,990 |
390,486 |
640,594 |
413,444 |
1.56 |
1.01 |
| configure.tcc |
no-host |
6,555 |
5,473 |
23,234 |
6,997 |
3.54 |
1.07 |
| configure.util-linux |
no-host |
2,106,447 |
2,261,829 |
5,332,090 |
2,002,525 |
2.53 |
0.95 |
| configure.yash |
no-host |
256,360 |
244,598 |
387,190 |
261,841 |
1.51 |
1.02 |
| hello-world |
no-host |
151 |
84 |
3,695 |
348 |
24.47 |
2.30 |
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.0 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
1,028 |
0 |
2 |
2.6 |
8.1 |
202,738 |
13,857 |
2,818 |
9,734 |
106,375 |
86,629 |
3,008 |
4 |
50,000 |
0 |
| configure.cpython |
no-host |
15,367 |
2 |
62 |
15.0 |
27.4 |
1,772,714 |
49,108 |
28,528 |
86,381 |
908,127 |
778,206 |
22,694 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,529 |
3 |
60 |
21.3 |
30.1 |
2,703,546 |
44,172 |
65,812 |
109,643 |
1,320,681 |
1,273,222 |
27,391 |
41 |
131,624 |
1 |
| configure.ocaml |
no-host |
3,800 |
1 |
2 |
2.6 |
20.6 |
150,084 |
10,993 |
5,163 |
7,513 |
71,663 |
70,908 |
1,448 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,573 |
30,573 |
0 |
1,504 |
14,830 |
14,239 |
226 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,852 |
1 |
2 |
2.6 |
24.2 |
142,957 |
10,576 |
6,510 |
6,320 |
72,211 |
64,426 |
1,803 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
12 |
8 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
459 |
387 |
74 |
21.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.9 |
osh-native |
| 1 |
no-host |
bin-true |
700 |
517 |
214 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
548 |
422 |
137 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,700 |
1,854 |
1,112 |
19.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
1,028 |
713 |
331 |
8.1 |
osh-native |
| 2 |
no-host |
configure.cpython |
15,496 |
9,366 |
6,516 |
27.3 |
bash |
| 10 |
no-host |
configure.cpython |
15,257 |
9,144 |
6,539 |
27.3 |
dash |
| 18 |
no-host |
configure.cpython |
28,632 |
17,322 |
13,181 |
27.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,367 |
9,046 |
6,584 |
27.4 |
osh-native |
| 4 |
no-host |
configure.ocaml |
3,870 |
1,649 |
1,240 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,749 |
1,565 |
1,205 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,727 |
2,317 |
1,624 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,800 |
1,672 |
1,167 |
20.6 |
osh-native |
| 5 |
no-host |
configure.tcc |
48 |
27 |
21 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
194 |
137 |
60 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
31 |
19 |
19.3 |
osh-native |
| 3 |
no-host |
configure.util-linux |
14,250 |
8,952 |
5,783 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,926 |
9,226 |
6,201 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
31,332 |
21,194 |
11,233 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,529 |
8,670 |
6,058 |
30.1 |
osh-native |
| 6 |
no-host |
configure.yash |
1,840 |
1,076 |
773 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,776 |
1,076 |
702 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,488 |
1,573 |
958 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,852 |
1,075 |
781 |
24.2 |
osh-native |
| 0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
49 |
37 |
12 |
17.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,141 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,044 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,183 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native |
| 1 |
no-host |
bin-true |
107,339 |
0 |
0 |
0 |
8 |
0 |
1,994 |
139 |
bash |
| 9 |
no-host |
bin-true |
66,417 |
0 |
0 |
0 |
8 |
0 |
1,984 |
43 |
dash |
| 17 |
no-host |
bin-true |
883,816 |
0 |
0 |
0 |
8 |
0 |
1,997 |
260 |
osh-cpython |
| 25 |
no-host |
bin-true |
246,807 |
0 |
0 |
0 |
16 |
0 |
1,996 |
183 |
osh-native |
| 2 |
no-host |
configure.cpython |
2,215,564 |
0 |
0 |
0 |
32,928 |
0 |
14,500 |
1,032 |
bash |
| 10 |
no-host |
configure.cpython |
2,238,695 |
0 |
0 |
0 |
32,992 |
0 |
14,667 |
1,209 |
dash |
| 18 |
no-host |
configure.cpython |
6,178,021 |
1 |
0 |
0 |
27,512 |
0 |
13,284 |
1,270 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,229,963 |
0 |
0 |
0 |
27,520 |
0 |
13,253 |
1,142 |
osh-native |
| 4 |
no-host |
configure.ocaml |
410,990 |
0 |
0 |
0 |
5,120 |
0 |
1,988 |
177 |
bash |
| 12 |
no-host |
configure.ocaml |
390,486 |
0 |
0 |
0 |
5,112 |
0 |
1,936 |
134 |
dash |
| 20 |
no-host |
configure.ocaml |
640,594 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
182 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,444 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
172 |
osh-native |
| 5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,234 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,997 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
| 3 |
no-host |
configure.util-linux |
2,106,447 |
1 |
0 |
0 |
42,400 |
0 |
18,695 |
1,128 |
bash |
| 11 |
no-host |
configure.util-linux |
2,261,829 |
0 |
0 |
0 |
42,584 |
0 |
17,521 |
1,116 |
dash |
| 19 |
no-host |
configure.util-linux |
5,332,090 |
15 |
0 |
0 |
39,112 |
0 |
16,958 |
1,219 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,002,525 |
0 |
0 |
0 |
39,120 |
0 |
16,942 |
1,171 |
osh-native |
| 6 |
no-host |
configure.yash |
256,360 |
0 |
0 |
0 |
4,120 |
0 |
866 |
77 |
bash |
| 14 |
no-host |
configure.yash |
244,598 |
0 |
0 |
0 |
3,720 |
0 |
866 |
83 |
dash |
| 22 |
no-host |
configure.yash |
387,190 |
0 |
0 |
0 |
3,728 |
0 |
852 |
98 |
osh-cpython |
| 30 |
no-host |
configure.yash |
261,841 |
0 |
0 |
0 |
3,736 |
0 |
845 |
80 |
osh-native |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,695 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host