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 |
20 |
10 |
458 |
23 |
23.29 |
1.15 |
bin-true |
no-host |
684 |
543 |
2,250 |
818 |
3.29 |
1.19 |
configure.cpython |
no-host |
15,132 |
15,273 |
28,870 |
15,343 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,812 |
3,788 |
4,686 |
3,827 |
1.23 |
1.00 |
configure.tcc |
no-host |
48 |
43 |
199 |
49 |
4.16 |
1.03 |
configure.util-linux |
no-host |
14,226 |
15,046 |
31,730 |
14,665 |
2.23 |
1.03 |
configure.yash |
no-host |
1,850 |
1,786 |
2,484 |
1,843 |
1.34 |
1.00 |
hello-world |
no-host |
1 |
1 |
51 |
3 |
33.90 |
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,524 |
1,105 |
23,196 |
3,209 |
9.19 |
1.27 |
bin-true |
no-host |
106,366 |
65,341 |
749,096 |
127,141 |
7.04 |
1.20 |
configure.cpython |
no-host |
2,225,738 |
2,249,764 |
6,137,051 |
2,234,551 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,252 |
391,021 |
637,621 |
413,081 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,481 |
23,255 |
6,999 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,100,098 |
2,264,001 |
5,336,969 |
2,014,759 |
2.54 |
0.96 |
configure.yash |
no-host |
256,827 |
244,686 |
385,392 |
259,049 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
84 |
3,650 |
346 |
24.33 |
2.31 |
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,717 |
3,717 |
0 |
684 |
1,869 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.7 |
8.0 |
154,682 |
12,988 |
2,795 |
11,737 |
78,338 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,343 |
2 |
64 |
15.8 |
27.5 |
1,772,598 |
49,193 |
28,504 |
101,770 |
908,045 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,665 |
3 |
63 |
22.2 |
30.3 |
2,703,262 |
44,762 |
65,788 |
126,121 |
1,320,489 |
1,256,652 |
49,081 |
41 |
131,576 |
1 |
configure.ocaml |
no-host |
3,827 |
1 |
2 |
2.7 |
20.6 |
150,024 |
11,041 |
5,134 |
8,602 |
71,623 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,517 |
30,517 |
0 |
1,599 |
14,793 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
1 |
2 |
2.6 |
24.4 |
139,681 |
7,960 |
6,596 |
7,554 |
70,295 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.7 |
116,260 |
64,451 |
42,659 |
4,609 |
54,538 |
57,113 |
478 |
3 |
85,318 |
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 |
20 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
412 |
49 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
684 |
501 |
216 |
2.9 |
bash |
9 |
no-host |
bin-true |
543 |
416 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,250 |
1,534 |
976 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
570 |
264 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,132 |
9,184 |
6,348 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,273 |
9,219 |
6,487 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,870 |
17,438 |
13,299 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,343 |
9,107 |
6,512 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,812 |
1,684 |
1,167 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,788 |
1,636 |
1,172 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,686 |
2,264 |
1,631 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,827 |
1,671 |
1,195 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
30 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
150 |
52 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,226 |
8,978 |
5,739 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,046 |
9,137 |
6,411 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,730 |
21,345 |
11,514 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,665 |
8,655 |
6,207 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,850 |
1,103 |
756 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,786 |
1,006 |
784 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,484 |
1,547 |
980 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,843 |
1,011 |
837 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
2 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
51 |
38 |
12 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,524 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,196 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,366 |
0 |
0 |
0 |
8 |
0 |
1,990 |
68 |
bash |
9 |
no-host |
bin-true |
65,341 |
0 |
0 |
0 |
8 |
0 |
1,984 |
34 |
dash |
17 |
no-host |
bin-true |
749,096 |
0 |
0 |
0 |
8 |
0 |
1,992 |
221 |
osh-cpython |
25 |
no-host |
bin-true |
127,141 |
0 |
0 |
0 |
16 |
0 |
1,994 |
49 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,738 |
0 |
0 |
0 |
32,928 |
0 |
14,476 |
1,085 |
bash |
10 |
no-host |
configure.cpython |
2,249,764 |
0 |
0 |
0 |
32,992 |
0 |
14,602 |
1,096 |
dash |
18 |
no-host |
configure.cpython |
6,137,051 |
0 |
0 |
0 |
27,512 |
0 |
13,138 |
1,205 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,551 |
0 |
0 |
0 |
27,520 |
0 |
13,215 |
1,025 |
osh-native |
4 |
no-host |
configure.ocaml |
410,252 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
178 |
bash |
12 |
no-host |
configure.ocaml |
391,021 |
0 |
0 |
0 |
5,112 |
0 |
1,944 |
163 |
dash |
20 |
no-host |
configure.ocaml |
637,621 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
192 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,081 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
151 |
osh-native |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
9 |
dash |
21 |
no-host |
configure.tcc |
23,255 |
0 |
0 |
0 |
96 |
0 |
52 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,999 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,098 |
2 |
0 |
0 |
42,400 |
0 |
18,630 |
1,227 |
bash |
11 |
no-host |
configure.util-linux |
2,264,001 |
2 |
0 |
0 |
42,584 |
0 |
17,421 |
1,256 |
dash |
19 |
no-host |
configure.util-linux |
5,336,969 |
17 |
0 |
0 |
39,128 |
0 |
17,034 |
1,281 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,759 |
2 |
0 |
0 |
39,128 |
0 |
17,082 |
1,019 |
osh-native |
6 |
no-host |
configure.yash |
256,827 |
0 |
0 |
0 |
4,120 |
0 |
868 |
78 |
bash |
14 |
no-host |
configure.yash |
244,686 |
0 |
0 |
0 |
3,720 |
0 |
862 |
80 |
dash |
22 |
no-host |
configure.yash |
385,392 |
0 |
0 |
0 |
3,728 |
0 |
857 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
259,049 |
0 |
0 |
0 |
3,736 |
0 |
852 |
90 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,650 |
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