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 |
458 |
22 |
23.65 |
1.15 |
bin-true |
no-host |
676 |
553 |
2,294 |
819 |
3.40 |
1.21 |
configure.cpython |
no-host |
15,317 |
15,444 |
29,298 |
15,667 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,942 |
3,758 |
4,678 |
3,843 |
1.19 |
0.97 |
configure.tcc |
no-host |
48 |
42 |
196 |
49 |
4.09 |
1.03 |
configure.util-linux |
no-host |
14,239 |
15,022 |
32,020 |
14,547 |
2.25 |
1.02 |
configure.yash |
no-host |
1,876 |
1,782 |
2,467 |
1,854 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.74 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,527 |
1,085 |
22,878 |
3,194 |
9.05 |
1.26 |
bin-true |
no-host |
106,353 |
65,405 |
755,420 |
127,172 |
7.10 |
1.20 |
configure.cpython |
no-host |
2,228,714 |
2,243,181 |
6,161,596 |
2,213,194 |
2.76 |
0.99 |
configure.ocaml |
no-host |
410,239 |
391,209 |
641,087 |
413,685 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,547 |
5,467 |
23,325 |
6,993 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,104,209 |
2,262,459 |
5,330,881 |
1,999,537 |
2.53 |
0.95 |
configure.yash |
no-host |
256,129 |
243,004 |
384,073 |
258,257 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,694 |
346 |
24.30 |
2.28 |
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.2 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
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,667 |
1 |
63 |
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,547 |
2 |
60 |
21.3 |
30.3 |
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,843 |
1 |
2 |
2.6 |
20.6 |
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.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,854 |
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 |
8.9 |
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 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
411 |
50 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
676 |
491 |
215 |
2.8 |
bash |
9 |
no-host |
bin-true |
553 |
430 |
128 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,294 |
1,515 |
1,046 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
598 |
235 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,317 |
9,130 |
6,590 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,444 |
9,234 |
6,632 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,298 |
17,737 |
13,457 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,667 |
9,204 |
6,731 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,942 |
1,664 |
1,310 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,758 |
1,601 |
1,175 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,678 |
2,235 |
1,653 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,843 |
1,564 |
1,316 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
26 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
159 |
40 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,239 |
9,015 |
5,701 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,022 |
9,267 |
6,245 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
32,020 |
20,949 |
12,183 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,547 |
8,619 |
6,118 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,876 |
1,081 |
803 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,782 |
1,009 |
776 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,467 |
1,505 |
1,005 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,854 |
1,108 |
749 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
18 |
31 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,527 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,085 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,878 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,194 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,353 |
0 |
0 |
0 |
8 |
0 |
1,994 |
85 |
bash |
9 |
no-host |
bin-true |
65,405 |
0 |
0 |
0 |
8 |
0 |
1,987 |
124 |
dash |
17 |
no-host |
bin-true |
755,420 |
0 |
0 |
0 |
8 |
0 |
2,000 |
467 |
osh-cpython |
25 |
no-host |
bin-true |
127,172 |
0 |
0 |
0 |
16 |
0 |
1,996 |
186 |
osh-native |
2 |
no-host |
configure.cpython |
2,228,714 |
0 |
0 |
0 |
32,928 |
0 |
14,528 |
1,136 |
bash |
10 |
no-host |
configure.cpython |
2,243,181 |
0 |
0 |
0 |
32,992 |
0 |
14,620 |
1,091 |
dash |
18 |
no-host |
configure.cpython |
6,161,596 |
1 |
0 |
0 |
27,512 |
0 |
13,283 |
1,219 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,213,194 |
0 |
0 |
0 |
27,520 |
0 |
13,213 |
1,039 |
osh-native |
4 |
no-host |
configure.ocaml |
410,239 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
145 |
bash |
12 |
no-host |
configure.ocaml |
391,209 |
0 |
0 |
0 |
5,112 |
0 |
1,942 |
144 |
dash |
20 |
no-host |
configure.ocaml |
641,087 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
209 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,685 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
182 |
osh-native |
5 |
no-host |
configure.tcc |
6,547 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,467 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,325 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,209 |
0 |
0 |
0 |
42,408 |
0 |
18,690 |
1,204 |
bash |
11 |
no-host |
configure.util-linux |
2,262,459 |
1 |
0 |
0 |
42,592 |
0 |
17,447 |
1,219 |
dash |
19 |
no-host |
configure.util-linux |
5,330,881 |
5 |
0 |
0 |
39,112 |
0 |
17,003 |
1,342 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,537 |
0 |
0 |
0 |
39,120 |
0 |
16,995 |
1,033 |
osh-native |
6 |
no-host |
configure.yash |
256,129 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
14 |
no-host |
configure.yash |
243,004 |
0 |
0 |
0 |
3,720 |
0 |
866 |
81 |
dash |
22 |
no-host |
configure.yash |
384,073 |
0 |
0 |
0 |
3,728 |
0 |
857 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,257 |
0 |
0 |
0 |
3,736 |
0 |
842 |
100 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,694 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host