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 |
448 |
22 |
23.83 |
1.17 |
bin-true |
no-host |
673 |
539 |
2,258 |
809 |
3.35 |
1.20 |
configure.cpython |
no-host |
14,768 |
14,874 |
28,168 |
15,017 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,782 |
3,714 |
4,576 |
3,791 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
194 |
49 |
4.10 |
1.03 |
configure.util-linux |
no-host |
13,820 |
14,688 |
30,760 |
14,178 |
2.23 |
1.03 |
configure.yash |
no-host |
1,799 |
1,734 |
2,417 |
1,796 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
30.38 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,518 |
1,122 |
22,802 |
3,174 |
9.06 |
1.26 |
bin-true |
no-host |
107,310 |
66,489 |
750,739 |
127,159 |
7.00 |
1.18 |
configure.cpython |
no-host |
2,216,121 |
2,240,241 |
6,148,285 |
2,210,672 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,432 |
391,444 |
638,782 |
413,677 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,473 |
23,248 |
6,979 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,099,752 |
2,263,650 |
5,308,008 |
1,992,317 |
2.53 |
0.95 |
configure.yash |
no-host |
256,217 |
244,769 |
383,532 |
258,571 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
77 |
3,685 |
348 |
24.24 |
2.29 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
809 |
1 |
2 |
2.6 |
7.7 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,017 |
1 |
58 |
15.0 |
27.1 |
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,178 |
3 |
58 |
21.3 |
30.3 |
2,703,426 |
42,790 |
65,831 |
109,643 |
1,320,611 |
1,273,172 |
49,081 |
41 |
131,662 |
1 |
configure.ocaml |
no-host |
3,791 |
1 |
2 |
2.6 |
20.4 |
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,796 |
1 |
2 |
2.6 |
24.4 |
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.2 |
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 |
10 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
448 |
411 |
40 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.2 |
osh-native |
1 |
no-host |
bin-true |
673 |
505 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
539 |
410 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,258 |
1,513 |
1,005 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
809 |
552 |
268 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
14,768 |
8,918 |
6,248 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,874 |
8,986 |
6,302 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,168 |
17,348 |
12,650 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,017 |
9,059 |
6,218 |
27.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,782 |
1,668 |
1,145 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,714 |
1,516 |
1,216 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,576 |
2,169 |
1,609 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,791 |
1,639 |
1,192 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
30 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
29 |
12 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
128 |
70 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,820 |
8,823 |
5,470 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,688 |
9,083 |
6,101 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,760 |
20,379 |
11,446 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,178 |
8,584 |
5,793 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,799 |
987 |
821 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,734 |
1,023 |
712 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,417 |
1,536 |
923 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,796 |
1,062 |
738 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.3 |
dash |
16 |
no-host |
hello-world |
49 |
17 |
32 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,122 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,802 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,310 |
0 |
0 |
0 |
8 |
0 |
1,986 |
45 |
bash |
9 |
no-host |
bin-true |
66,489 |
0 |
0 |
0 |
8 |
0 |
1,986 |
54 |
dash |
17 |
no-host |
bin-true |
750,739 |
0 |
0 |
0 |
8 |
0 |
1,995 |
312 |
osh-cpython |
25 |
no-host |
bin-true |
127,159 |
0 |
0 |
0 |
16 |
0 |
1,986 |
81 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,121 |
0 |
0 |
0 |
32,928 |
0 |
14,501 |
1,070 |
bash |
10 |
no-host |
configure.cpython |
2,240,241 |
0 |
0 |
0 |
32,992 |
0 |
14,643 |
1,352 |
dash |
18 |
no-host |
configure.cpython |
6,148,285 |
0 |
0 |
0 |
27,512 |
0 |
13,228 |
1,215 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,210,672 |
0 |
0 |
0 |
27,520 |
0 |
13,281 |
1,045 |
osh-native |
4 |
no-host |
configure.ocaml |
410,432 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
183 |
bash |
12 |
no-host |
configure.ocaml |
391,444 |
0 |
0 |
0 |
5,112 |
0 |
1,918 |
154 |
dash |
20 |
no-host |
configure.ocaml |
638,782 |
0 |
0 |
0 |
5,112 |
0 |
1,839 |
210 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,677 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
146 |
osh-native |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,248 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,752 |
0 |
0 |
0 |
42,408 |
0 |
18,606 |
1,051 |
bash |
11 |
no-host |
configure.util-linux |
2,263,650 |
1 |
0 |
0 |
42,592 |
0 |
17,454 |
1,057 |
dash |
19 |
no-host |
configure.util-linux |
5,308,008 |
7 |
0 |
0 |
39,112 |
0 |
16,946 |
1,156 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,992,317 |
0 |
0 |
0 |
39,120 |
0 |
16,995 |
1,153 |
osh-native |
6 |
no-host |
configure.yash |
256,217 |
0 |
0 |
0 |
4,120 |
0 |
862 |
81 |
bash |
14 |
no-host |
configure.yash |
244,769 |
0 |
0 |
0 |
3,720 |
0 |
865 |
89 |
dash |
22 |
no-host |
configure.yash |
383,532 |
0 |
0 |
0 |
3,728 |
0 |
854 |
113 |
osh-cpython |
30 |
no-host |
configure.yash |
258,571 |
0 |
0 |
0 |
3,736 |
0 |
845 |
74 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
77 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,685 |
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