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 |
487 |
22 |
25.21 |
1.15 |
bin-true |
no-host |
670 |
546 |
2,240 |
815 |
3.35 |
1.22 |
configure.cpython |
no-host |
14,983 |
15,107 |
29,300 |
15,682 |
1.96 |
1.05 |
configure.ocaml |
no-host |
3,797 |
3,766 |
4,723 |
3,875 |
1.24 |
1.02 |
configure.tcc |
no-host |
47 |
42 |
198 |
49 |
4.19 |
1.04 |
configure.util-linux |
no-host |
14,016 |
15,009 |
31,850 |
14,583 |
2.27 |
1.04 |
configure.yash |
no-host |
1,828 |
1,784 |
2,487 |
1,845 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.21 |
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,571 |
1,097 |
22,867 |
3,193 |
8.89 |
1.24 |
bin-true |
no-host |
105,373 |
65,487 |
758,448 |
126,239 |
7.20 |
1.20 |
configure.cpython |
no-host |
2,219,724 |
2,248,400 |
6,160,537 |
2,218,611 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,259 |
391,248 |
641,118 |
413,688 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,541 |
5,487 |
23,324 |
6,993 |
3.57 |
1.07 |
configure.util-linux |
no-host |
2,106,597 |
2,257,573 |
5,334,065 |
1,991,441 |
2.53 |
0.95 |
configure.yash |
no-host |
255,957 |
244,627 |
384,327 |
257,944 |
1.50 |
1.01 |
hello-world |
no-host |
155 |
81 |
3,695 |
349 |
23.84 |
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.3 |
6.0 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,682 |
1 |
62 |
15.0 |
27.4 |
1,772,690 |
49,457 |
28,526 |
86,381 |
908,113 |
778,196 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,583 |
2 |
61 |
21.3 |
29.9 |
2,703,426 |
44,785 |
65,811 |
109,643 |
1,320,611 |
1,273,172 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,875 |
1 |
2 |
2.6 |
20.7 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,845 |
1 |
2 |
2.6 |
24.2 |
139,717 |
7,982 |
6,618 |
6,320 |
70,321 |
63,076 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,473 |
42,681 |
4,555 |
54,561 |
57,176 |
478 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
487 |
447 |
44 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
670 |
493 |
206 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
414 |
140 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,240 |
1,525 |
977 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
573 |
255 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,983 |
8,934 |
6,444 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,107 |
9,287 |
6,231 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,300 |
17,736 |
13,454 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,682 |
9,060 |
6,881 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,797 |
1,609 |
1,227 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,766 |
1,673 |
1,110 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,723 |
2,317 |
1,618 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,875 |
1,705 |
1,209 |
20.7 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
29 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
30 |
12 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
144 |
57 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,016 |
8,708 |
5,776 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,009 |
9,177 |
6,312 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,850 |
21,044 |
11,924 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,583 |
8,736 |
6,031 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,828 |
1,042 |
792 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,784 |
966 |
822 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,487 |
1,530 |
1,001 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,845 |
1,125 |
719 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.6 |
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,571 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,867 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,193 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,373 |
0 |
0 |
0 |
8 |
0 |
1,988 |
36 |
bash |
9 |
no-host |
bin-true |
65,487 |
0 |
0 |
0 |
8 |
0 |
1,987 |
60 |
dash |
17 |
no-host |
bin-true |
758,448 |
0 |
0 |
0 |
8 |
0 |
1,987 |
106 |
osh-cpython |
25 |
no-host |
bin-true |
126,239 |
0 |
0 |
0 |
16 |
0 |
1,991 |
62 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,724 |
0 |
0 |
0 |
32,928 |
0 |
14,501 |
1,133 |
bash |
10 |
no-host |
configure.cpython |
2,248,400 |
0 |
0 |
0 |
32,992 |
0 |
14,600 |
1,089 |
dash |
18 |
no-host |
configure.cpython |
6,160,537 |
1 |
0 |
0 |
27,512 |
0 |
13,260 |
1,222 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,611 |
2 |
0 |
0 |
27,520 |
0 |
13,214 |
1,144 |
osh-native |
4 |
no-host |
configure.ocaml |
410,259 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
178 |
bash |
12 |
no-host |
configure.ocaml |
391,248 |
0 |
0 |
0 |
5,112 |
0 |
1,933 |
144 |
dash |
20 |
no-host |
configure.ocaml |
641,118 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
163 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,688 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
140 |
osh-native |
5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,324 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,106,597 |
1 |
0 |
0 |
42,400 |
0 |
18,596 |
972 |
bash |
11 |
no-host |
configure.util-linux |
2,257,573 |
2 |
0 |
0 |
42,592 |
0 |
17,427 |
1,044 |
dash |
19 |
no-host |
configure.util-linux |
5,334,065 |
6 |
0 |
0 |
39,112 |
0 |
16,951 |
1,275 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,991,441 |
1 |
0 |
0 |
39,128 |
0 |
16,960 |
984 |
osh-native |
6 |
no-host |
configure.yash |
255,957 |
0 |
0 |
0 |
4,120 |
0 |
882 |
97 |
bash |
14 |
no-host |
configure.yash |
244,627 |
0 |
0 |
0 |
3,720 |
0 |
871 |
74 |
dash |
22 |
no-host |
configure.yash |
384,327 |
0 |
0 |
0 |
3,728 |
0 |
851 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
257,944 |
0 |
0 |
0 |
3,736 |
0 |
849 |
87 |
osh-native |
0 |
no-host |
hello-world |
155 |
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,695 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host