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 |
464 |
22 |
24.51 |
1.17 |
bin-true |
no-host |
679 |
540 |
2,217 |
818 |
3.27 |
1.21 |
configure.cpython |
no-host |
14,869 |
14,920 |
28,262 |
15,380 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,802 |
3,703 |
4,627 |
3,800 |
1.22 |
1.00 |
configure.tcc |
no-host |
52 |
41 |
189 |
49 |
3.65 |
0.95 |
configure.util-linux |
no-host |
13,934 |
14,769 |
30,838 |
14,329 |
2.21 |
1.03 |
configure.yash |
no-host |
1,799 |
1,761 |
2,411 |
1,811 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.85 |
1.85 |
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,152 |
23,223 |
3,204 |
9.16 |
1.26 |
bin-true |
no-host |
107,328 |
66,387 |
751,091 |
127,203 |
7.00 |
1.19 |
configure.cpython |
no-host |
2,223,199 |
2,239,751 |
6,136,848 |
2,236,208 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,791 |
391,274 |
637,540 |
412,901 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,568 |
5,515 |
23,170 |
6,981 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,098,273 |
2,267,544 |
5,331,196 |
2,014,630 |
2.54 |
0.96 |
configure.yash |
no-host |
255,979 |
244,510 |
384,501 |
258,906 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
78 |
3,654 |
344 |
23.73 |
2.23 |
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.2 |
6.0 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.7 |
7.7 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,380 |
1 |
62 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,329 |
2 |
58 |
22.2 |
30.4 |
2,703,259 |
44,760 |
65,806 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,800 |
1 |
2 |
2.7 |
20.4 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,811 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
464 |
417 |
51 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
679 |
500 |
210 |
2.8 |
bash |
9 |
no-host |
bin-true |
540 |
407 |
144 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,217 |
1,413 |
1,055 |
17.0 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
577 |
256 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
14,869 |
8,972 |
6,295 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,920 |
8,910 |
6,429 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,262 |
17,165 |
12,895 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,380 |
9,131 |
6,515 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,802 |
1,567 |
1,274 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,703 |
1,531 |
1,192 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,627 |
2,231 |
1,598 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,800 |
1,620 |
1,215 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
52 |
24 |
29 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
34 |
8 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
189 |
163 |
30 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,934 |
8,823 |
5,587 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,769 |
9,050 |
6,207 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,838 |
20,562 |
11,328 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,329 |
8,656 |
5,871 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,799 |
1,043 |
764 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,761 |
975 |
788 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,411 |
1,463 |
990 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,811 |
1,070 |
745 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
47 |
22 |
25 |
17.1 |
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 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,152 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,223 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,204 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,328 |
0 |
0 |
0 |
8 |
0 |
1,996 |
125 |
bash |
9 |
no-host |
bin-true |
66,387 |
0 |
0 |
0 |
8 |
0 |
1,986 |
70 |
dash |
17 |
no-host |
bin-true |
751,091 |
0 |
0 |
0 |
8 |
0 |
1,998 |
327 |
osh-cpython |
25 |
no-host |
bin-true |
127,203 |
0 |
0 |
0 |
16 |
0 |
1,995 |
163 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,199 |
0 |
0 |
0 |
32,928 |
0 |
14,510 |
1,062 |
bash |
10 |
no-host |
configure.cpython |
2,239,751 |
0 |
0 |
0 |
32,992 |
0 |
14,568 |
1,075 |
dash |
18 |
no-host |
configure.cpython |
6,136,848 |
2 |
0 |
0 |
27,512 |
0 |
13,267 |
1,330 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,208 |
0 |
0 |
0 |
27,520 |
0 |
13,309 |
1,219 |
osh-native |
4 |
no-host |
configure.ocaml |
410,791 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
156 |
bash |
12 |
no-host |
configure.ocaml |
391,274 |
0 |
0 |
0 |
5,112 |
0 |
1,943 |
155 |
dash |
20 |
no-host |
configure.ocaml |
637,540 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
182 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,901 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,568 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,515 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,170 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,273 |
0 |
0 |
0 |
42,400 |
0 |
18,507 |
1,116 |
bash |
11 |
no-host |
configure.util-linux |
2,267,544 |
0 |
0 |
0 |
42,584 |
0 |
17,390 |
1,089 |
dash |
19 |
no-host |
configure.util-linux |
5,331,196 |
9 |
0 |
0 |
39,120 |
0 |
17,068 |
1,236 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,630 |
2 |
0 |
0 |
39,120 |
0 |
17,203 |
959 |
osh-native |
6 |
no-host |
configure.yash |
255,979 |
0 |
0 |
0 |
4,120 |
0 |
869 |
69 |
bash |
14 |
no-host |
configure.yash |
244,510 |
0 |
0 |
0 |
3,720 |
0 |
865 |
77 |
dash |
22 |
no-host |
configure.yash |
384,501 |
0 |
0 |
0 |
3,728 |
0 |
858 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,906 |
0 |
0 |
0 |
3,736 |
0 |
854 |
67 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,654 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host