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 |
458 |
22 |
24.31 |
1.18 |
bin-true |
no-host |
668 |
540 |
2,216 |
823 |
3.32 |
1.23 |
configure.cpython |
no-host |
14,893 |
15,010 |
28,747 |
15,514 |
1.93 |
1.04 |
configure.ocaml |
no-host |
3,798 |
3,762 |
4,645 |
3,875 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
43 |
194 |
49 |
4.06 |
1.03 |
configure.util-linux |
no-host |
13,945 |
15,097 |
31,267 |
14,525 |
2.24 |
1.04 |
configure.yash |
no-host |
1,810 |
1,781 |
2,460 |
1,836 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
32.70 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,535 |
1,130 |
22,936 |
3,182 |
9.05 |
1.26 |
bin-true |
no-host |
105,336 |
65,370 |
748,724 |
129,221 |
7.11 |
1.23 |
configure.cpython |
no-host |
2,223,841 |
2,244,388 |
6,117,523 |
2,219,736 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,931 |
391,389 |
639,097 |
413,739 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,470 |
23,217 |
6,963 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,108,450 |
2,259,471 |
5,306,490 |
1,997,029 |
2.52 |
0.95 |
configure.yash |
no-host |
255,793 |
243,529 |
381,780 |
258,405 |
1.49 |
1.01 |
hello-world |
no-host |
149 |
81 |
3,727 |
346 |
25.01 |
2.32 |
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,728 |
3,728 |
0 |
681 |
1,878 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.6 |
8.1 |
154,693 |
12,993 |
2,800 |
9,731 |
78,347 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,514 |
1 |
66 |
15.0 |
27.4 |
1,772,669 |
49,198 |
28,509 |
86,378 |
908,099 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,525 |
3 |
64 |
21.3 |
30.3 |
2,703,405 |
44,289 |
65,813 |
109,640 |
1,320,597 |
1,273,168 |
49,081 |
41 |
131,626 |
1 |
configure.ocaml |
no-host |
3,875 |
1 |
2 |
2.6 |
20.4 |
150,039 |
11,046 |
5,139 |
7,510 |
71,635 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,528 |
30,528 |
0 |
1,501 |
14,802 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,836 |
1 |
2 |
2.6 |
24.5 |
139,696 |
7,965 |
6,601 |
6,317 |
70,307 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,271 |
64,456 |
42,664 |
4,552 |
54,547 |
57,172 |
478 |
3 |
85,328 |
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 |
14 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
406 |
56 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
668 |
488 |
211 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
420 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,216 |
1,511 |
962 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
823 |
576 |
260 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,893 |
8,966 |
6,327 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,010 |
9,056 |
6,378 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,747 |
17,539 |
13,052 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,514 |
8,976 |
6,807 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,798 |
1,655 |
1,172 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,762 |
1,692 |
1,089 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,645 |
2,225 |
1,628 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,875 |
1,687 |
1,228 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
30 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
127 |
70 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,945 |
8,817 |
5,618 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,097 |
9,299 |
6,310 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,267 |
20,706 |
11,651 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,525 |
8,744 |
5,985 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,810 |
1,035 |
783 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,781 |
979 |
806 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,460 |
1,454 |
1,048 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,836 |
1,097 |
743 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
17.3 |
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,535 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,130 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,936 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,182 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,336 |
0 |
0 |
0 |
8 |
0 |
1,996 |
116 |
bash |
9 |
no-host |
bin-true |
65,370 |
0 |
0 |
0 |
8 |
0 |
1,995 |
40 |
dash |
17 |
no-host |
bin-true |
748,724 |
0 |
0 |
0 |
8 |
0 |
1,997 |
90 |
osh-cpython |
25 |
no-host |
bin-true |
129,221 |
0 |
0 |
0 |
16 |
0 |
1,990 |
81 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,841 |
0 |
0 |
0 |
32,928 |
0 |
14,557 |
1,048 |
bash |
10 |
no-host |
configure.cpython |
2,244,388 |
1 |
0 |
0 |
32,992 |
0 |
14,613 |
1,033 |
dash |
18 |
no-host |
configure.cpython |
6,117,523 |
0 |
0 |
0 |
27,512 |
0 |
13,212 |
1,204 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,219,736 |
1 |
0 |
0 |
27,520 |
0 |
13,206 |
1,109 |
osh-native |
4 |
no-host |
configure.ocaml |
410,931 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
181 |
bash |
12 |
no-host |
configure.ocaml |
391,389 |
0 |
0 |
0 |
5,112 |
0 |
1,908 |
156 |
dash |
20 |
no-host |
configure.ocaml |
639,097 |
1 |
0 |
0 |
5,112 |
0 |
1,853 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,739 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
147 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,217 |
0 |
0 |
0 |
96 |
0 |
53 |
18 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,963 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,108,450 |
0 |
0 |
0 |
42,400 |
0 |
18,658 |
1,011 |
bash |
11 |
no-host |
configure.util-linux |
2,259,471 |
1 |
0 |
0 |
42,584 |
0 |
17,442 |
1,330 |
dash |
19 |
no-host |
configure.util-linux |
5,306,490 |
10 |
0 |
0 |
39,112 |
0 |
16,972 |
1,364 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,029 |
0 |
0 |
0 |
39,120 |
0 |
16,960 |
962 |
osh-native |
6 |
no-host |
configure.yash |
255,793 |
0 |
0 |
0 |
4,120 |
0 |
872 |
79 |
bash |
14 |
no-host |
configure.yash |
243,529 |
0 |
0 |
0 |
3,720 |
0 |
871 |
75 |
dash |
22 |
no-host |
configure.yash |
381,780 |
0 |
0 |
0 |
3,728 |
0 |
859 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,405 |
0 |
0 |
0 |
3,736 |
0 |
848 |
101 |
osh-native |
0 |
no-host |
hello-world |
149 |
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,727 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host