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 |
455 |
22 |
23.85 |
1.18 |
bin-true |
no-host |
673 |
546 |
2,222 |
817 |
3.30 |
1.21 |
configure.cpython |
no-host |
15,076 |
15,368 |
28,857 |
15,316 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,833 |
3,750 |
4,643 |
3,872 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
193 |
50 |
4.03 |
1.03 |
configure.util-linux |
no-host |
14,063 |
15,088 |
31,593 |
14,857 |
2.25 |
1.06 |
configure.yash |
no-host |
1,841 |
1,780 |
2,451 |
1,854 |
1.33 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.97 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,529 |
1,138 |
23,157 |
3,208 |
9.16 |
1.27 |
bin-true |
no-host |
104,339 |
65,419 |
750,407 |
128,170 |
7.19 |
1.23 |
configure.cpython |
no-host |
2,215,879 |
2,240,634 |
6,099,923 |
2,225,863 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,870 |
391,252 |
636,270 |
413,376 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,571 |
5,498 |
23,210 |
6,977 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,098,250 |
2,261,946 |
5,310,216 |
2,009,741 |
2.53 |
0.96 |
configure.yash |
no-host |
254,676 |
245,146 |
384,580 |
257,136 |
1.51 |
1.01 |
hello-world |
no-host |
149 |
79 |
3,657 |
348 |
24.54 |
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.0 |
3,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.7 |
8.0 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,316 |
1 |
60 |
15.8 |
27.3 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,857 |
3 |
65 |
22.2 |
30.1 |
2,703,265 |
44,764 |
65,790 |
126,121 |
1,320,492 |
1,256,652 |
49,081 |
41 |
131,580 |
1 |
configure.ocaml |
no-host |
3,872 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,854 |
1 |
2 |
2.6 |
24.2 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
418 |
40 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
673 |
507 |
198 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
420 |
138 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,222 |
1,477 |
999 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
594 |
238 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,076 |
8,934 |
6,540 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,368 |
9,265 |
6,526 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,857 |
17,644 |
13,069 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,316 |
9,118 |
6,454 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,833 |
1,643 |
1,221 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,750 |
1,580 |
1,187 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,643 |
2,282 |
1,566 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,872 |
1,654 |
1,256 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
24 |
24 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
37 |
6 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
128 |
68 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,063 |
8,721 |
5,824 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,088 |
9,233 |
6,333 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,593 |
21,170 |
11,521 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,857 |
8,938 |
6,124 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,841 |
1,099 |
751 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,780 |
979 |
805 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,451 |
1,546 |
948 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,854 |
1,066 |
792 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,529 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,138 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,157 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,208 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
104,339 |
0 |
0 |
0 |
8 |
0 |
1,989 |
44 |
bash |
9 |
no-host |
bin-true |
65,419 |
0 |
0 |
0 |
8 |
0 |
1,983 |
40 |
dash |
17 |
no-host |
bin-true |
750,407 |
0 |
0 |
0 |
8 |
0 |
1,998 |
125 |
osh-cpython |
25 |
no-host |
bin-true |
128,170 |
0 |
0 |
0 |
16 |
0 |
1,995 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,879 |
0 |
0 |
0 |
32,928 |
0 |
14,414 |
1,276 |
bash |
10 |
no-host |
configure.cpython |
2,240,634 |
0 |
0 |
0 |
32,992 |
0 |
14,601 |
1,262 |
dash |
18 |
no-host |
configure.cpython |
6,099,923 |
0 |
0 |
0 |
27,512 |
0 |
13,224 |
1,457 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,863 |
0 |
0 |
0 |
27,520 |
0 |
13,314 |
950 |
osh-native |
4 |
no-host |
configure.ocaml |
410,870 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
173 |
bash |
12 |
no-host |
configure.ocaml |
391,252 |
0 |
0 |
0 |
5,112 |
0 |
1,875 |
157 |
dash |
20 |
no-host |
configure.ocaml |
636,270 |
1 |
0 |
0 |
5,112 |
0 |
1,851 |
226 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,376 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,571 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,498 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,210 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,977 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,250 |
0 |
0 |
0 |
42,408 |
0 |
18,600 |
1,117 |
bash |
11 |
no-host |
configure.util-linux |
2,261,946 |
0 |
0 |
0 |
42,592 |
0 |
17,485 |
1,074 |
dash |
19 |
no-host |
configure.util-linux |
5,310,216 |
5 |
0 |
0 |
39,112 |
0 |
17,028 |
1,246 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,741 |
1 |
0 |
0 |
39,128 |
0 |
17,141 |
1,162 |
osh-native |
6 |
no-host |
configure.yash |
254,676 |
0 |
0 |
0 |
4,120 |
0 |
870 |
81 |
bash |
14 |
no-host |
configure.yash |
245,146 |
0 |
0 |
0 |
3,720 |
0 |
870 |
79 |
dash |
22 |
no-host |
configure.yash |
384,580 |
0 |
0 |
0 |
3,728 |
0 |
858 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
257,136 |
0 |
0 |
0 |
3,736 |
0 |
852 |
90 |
osh-native |
0 |
no-host |
hello-world |
149 |
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,657 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host