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 |
21 |
10 |
474 |
25 |
22.83 |
1.20 |
bin-true |
no-host |
715 |
558 |
2,311 |
864 |
3.23 |
1.21 |
configure.cpython |
no-host |
15,499 |
15,449 |
29,503 |
15,678 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,904 |
3,839 |
4,686 |
3,922 |
1.20 |
1.00 |
configure.tcc |
no-host |
50 |
43 |
196 |
51 |
3.94 |
1.03 |
configure.util-linux |
no-host |
14,545 |
15,323 |
31,648 |
14,912 |
2.18 |
1.03 |
configure.yash |
no-host |
1,848 |
1,836 |
2,515 |
1,887 |
1.36 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.77 |
2.12 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,538 |
1,100 |
23,093 |
3,238 |
9.10 |
1.28 |
bin-true |
no-host |
107,332 |
66,470 |
748,556 |
131,166 |
6.97 |
1.22 |
configure.cpython |
no-host |
2,219,745 |
2,248,570 |
6,097,036 |
2,240,996 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,731 |
390,898 |
635,912 |
413,790 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,577 |
5,468 |
23,224 |
6,991 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,099,333 |
2,261,734 |
5,307,709 |
2,023,546 |
2.53 |
0.96 |
configure.yash |
no-host |
256,425 |
244,043 |
385,094 |
258,626 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,654 |
342 |
24.04 |
2.25 |
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 |
864 |
1 |
2 |
2.7 |
8.1 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,678 |
2 |
67 |
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,912 |
3 |
65 |
22.2 |
29.9 |
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,922 |
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 |
51 |
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,887 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
25 |
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 |
21 |
7 |
15 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
474 |
421 |
56 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
25 |
19 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
715 |
524 |
222 |
3.0 |
bash |
9 |
no-host |
bin-true |
558 |
418 |
149 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,311 |
1,534 |
1,031 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
864 |
603 |
278 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,499 |
9,628 |
6,287 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,449 |
9,508 |
6,371 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,503 |
18,027 |
13,374 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,678 |
9,133 |
6,839 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,904 |
1,685 |
1,243 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,839 |
1,666 |
1,194 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,686 |
2,277 |
1,622 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,922 |
1,727 |
1,237 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
30 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
33 |
11 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
196 |
143 |
56 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
40 |
12 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,545 |
9,106 |
5,935 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,323 |
9,509 |
6,342 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,648 |
21,254 |
11,470 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,912 |
8,957 |
6,161 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,848 |
1,076 |
781 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,836 |
1,031 |
808 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,515 |
1,484 |
1,074 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,887 |
1,073 |
819 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
21 |
28 |
17.3 |
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,538 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,093 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,238 |
0 |
0 |
0 |
16 |
0 |
40 |
4 |
osh-native |
1 |
no-host |
bin-true |
107,332 |
0 |
0 |
0 |
8 |
0 |
1,993 |
195 |
bash |
9 |
no-host |
bin-true |
66,470 |
0 |
0 |
0 |
8 |
0 |
1,993 |
65 |
dash |
17 |
no-host |
bin-true |
748,556 |
0 |
0 |
0 |
8 |
0 |
1,995 |
174 |
osh-cpython |
25 |
no-host |
bin-true |
131,166 |
0 |
0 |
0 |
16 |
0 |
1,992 |
129 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,745 |
0 |
0 |
0 |
32,928 |
0 |
14,467 |
1,126 |
bash |
10 |
no-host |
configure.cpython |
2,248,570 |
0 |
0 |
0 |
32,992 |
0 |
14,554 |
942 |
dash |
18 |
no-host |
configure.cpython |
6,097,036 |
0 |
0 |
0 |
27,512 |
0 |
13,147 |
1,174 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,240,996 |
0 |
0 |
0 |
27,520 |
0 |
13,414 |
975 |
osh-native |
4 |
no-host |
configure.ocaml |
410,731 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
154 |
bash |
12 |
no-host |
configure.ocaml |
390,898 |
0 |
0 |
0 |
5,112 |
0 |
1,925 |
151 |
dash |
20 |
no-host |
configure.ocaml |
635,912 |
0 |
0 |
0 |
5,112 |
0 |
1,891 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,790 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
216 |
osh-native |
5 |
no-host |
configure.tcc |
6,577 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,224 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,333 |
0 |
0 |
0 |
42,400 |
0 |
18,666 |
1,070 |
bash |
11 |
no-host |
configure.util-linux |
2,261,734 |
0 |
0 |
0 |
42,584 |
0 |
17,456 |
1,205 |
dash |
19 |
no-host |
configure.util-linux |
5,307,709 |
14 |
0 |
0 |
39,112 |
0 |
17,165 |
1,243 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,023,546 |
1 |
0 |
0 |
39,120 |
0 |
17,207 |
1,104 |
osh-native |
6 |
no-host |
configure.yash |
256,425 |
0 |
0 |
0 |
4,120 |
0 |
870 |
72 |
bash |
14 |
no-host |
configure.yash |
244,043 |
0 |
0 |
0 |
3,720 |
0 |
867 |
98 |
dash |
22 |
no-host |
configure.yash |
385,094 |
0 |
0 |
0 |
3,728 |
0 |
856 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,626 |
0 |
0 |
0 |
3,736 |
0 |
852 |
114 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,654 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host