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 |
455 |
23 |
23.81 |
1.19 |
bin-true |
no-host |
678 |
548 |
2,230 |
831 |
3.29 |
1.23 |
configure.cpython |
no-host |
15,397 |
15,186 |
28,647 |
15,466 |
1.86 |
1.00 |
configure.ocaml |
no-host |
3,879 |
3,789 |
4,641 |
3,855 |
1.20 |
0.99 |
configure.tcc |
no-host |
48 |
43 |
195 |
49 |
4.11 |
1.04 |
configure.util-linux |
no-host |
14,100 |
15,073 |
31,486 |
14,552 |
2.23 |
1.03 |
configure.yash |
no-host |
1,845 |
1,761 |
2,468 |
1,862 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.34 |
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,505 |
1,097 |
23,565 |
3,213 |
9.41 |
1.28 |
bin-true |
no-host |
104,323 |
66,451 |
750,504 |
128,193 |
7.19 |
1.23 |
configure.cpython |
no-host |
2,218,185 |
2,244,637 |
6,104,027 |
2,240,144 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,487 |
390,858 |
637,491 |
413,760 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,533 |
5,462 |
23,242 |
7,003 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,100,011 |
2,264,195 |
5,321,013 |
2,017,998 |
2.53 |
0.96 |
configure.yash |
no-host |
255,902 |
245,010 |
384,860 |
258,439 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
84 |
3,649 |
339 |
23.69 |
2.20 |
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.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
831 |
1 |
2 |
2.7 |
8.0 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,466 |
1 |
64 |
15.8 |
27.0 |
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,552 |
3 |
62 |
22.2 |
30.3 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,855 |
1 |
2 |
2.7 |
20.6 |
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.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,862 |
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 |
23 |
1 |
2 |
2.8 |
8.9 |
116,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
455 |
425 |
33 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
678 |
511 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
548 |
417 |
142 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,230 |
1,409 |
1,069 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
831 |
586 |
261 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,397 |
9,191 |
6,389 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,186 |
9,044 |
6,541 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,647 |
17,339 |
13,143 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,466 |
9,070 |
6,672 |
27.0 |
osh-native |
4 |
no-host |
configure.ocaml |
3,879 |
1,654 |
1,253 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,789 |
1,639 |
1,166 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,641 |
2,224 |
1,617 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,855 |
1,658 |
1,237 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
24 |
24 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
20 |
23 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
135 |
64 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,100 |
8,831 |
5,748 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,073 |
9,196 |
6,333 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,486 |
20,869 |
11,682 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,552 |
8,797 |
5,959 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,845 |
1,085 |
768 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,761 |
1,027 |
738 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,468 |
1,488 |
1,024 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,862 |
1,070 |
795 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
24 |
17.2 |
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,505 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,565 |
0 |
0 |
0 |
8 |
0 |
47 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,213 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,323 |
0 |
0 |
0 |
8 |
0 |
1,993 |
138 |
bash |
9 |
no-host |
bin-true |
66,451 |
0 |
0 |
0 |
8 |
0 |
1,980 |
41 |
dash |
17 |
no-host |
bin-true |
750,504 |
0 |
0 |
0 |
8 |
0 |
1,996 |
168 |
osh-cpython |
25 |
no-host |
bin-true |
128,193 |
0 |
0 |
0 |
16 |
0 |
1,992 |
127 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,185 |
0 |
0 |
0 |
32,928 |
0 |
14,469 |
1,159 |
bash |
10 |
no-host |
configure.cpython |
2,244,637 |
0 |
0 |
0 |
32,992 |
0 |
14,640 |
1,188 |
dash |
18 |
no-host |
configure.cpython |
6,104,027 |
1 |
0 |
0 |
27,512 |
0 |
13,247 |
1,152 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,240,144 |
0 |
0 |
0 |
27,520 |
0 |
13,266 |
985 |
osh-native |
4 |
no-host |
configure.ocaml |
410,487 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
171 |
bash |
12 |
no-host |
configure.ocaml |
390,858 |
0 |
0 |
0 |
5,112 |
0 |
1,924 |
156 |
dash |
20 |
no-host |
configure.ocaml |
637,491 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
203 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,760 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
173 |
osh-native |
5 |
no-host |
configure.tcc |
6,533 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,462 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,242 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,003 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,011 |
1 |
0 |
0 |
42,408 |
0 |
18,617 |
948 |
bash |
11 |
no-host |
configure.util-linux |
2,264,195 |
0 |
0 |
0 |
42,592 |
0 |
17,505 |
1,106 |
dash |
19 |
no-host |
configure.util-linux |
5,321,013 |
12 |
0 |
0 |
39,112 |
0 |
17,072 |
1,401 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,998 |
1 |
0 |
0 |
39,120 |
0 |
17,065 |
1,068 |
osh-native |
6 |
no-host |
configure.yash |
255,902 |
0 |
0 |
0 |
4,120 |
0 |
866 |
117 |
bash |
14 |
no-host |
configure.yash |
245,010 |
0 |
0 |
0 |
3,720 |
0 |
866 |
83 |
dash |
22 |
no-host |
configure.yash |
384,860 |
0 |
0 |
0 |
3,728 |
0 |
861 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,439 |
0 |
0 |
0 |
3,736 |
0 |
852 |
96 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,649 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host