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 |
23 |
23.42 |
1.19 |
bin-true |
no-host |
686 |
546 |
2,259 |
817 |
3.29 |
1.19 |
configure.cpython |
no-host |
14,981 |
15,092 |
28,742 |
15,235 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,780 |
3,744 |
4,640 |
3,825 |
1.23 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
193 |
48 |
4.13 |
1.03 |
configure.util-linux |
no-host |
14,029 |
14,842 |
31,066 |
14,356 |
2.21 |
1.02 |
configure.yash |
no-host |
1,815 |
1,772 |
2,446 |
1,825 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.59 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,565 |
1,087 |
22,963 |
3,191 |
8.95 |
1.24 |
bin-true |
no-host |
107,308 |
66,439 |
760,007 |
129,084 |
7.08 |
1.20 |
configure.cpython |
no-host |
2,223,538 |
2,238,610 |
6,153,228 |
2,225,110 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,703 |
390,518 |
640,714 |
413,888 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,486 |
23,313 |
6,991 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,105,727 |
2,258,537 |
5,324,648 |
1,997,917 |
2.53 |
0.95 |
configure.yash |
no-host |
256,870 |
244,442 |
384,252 |
256,524 |
1.50 |
1.00 |
hello-world |
no-host |
153 |
79 |
3,687 |
348 |
24.10 |
2.27 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,235 |
2 |
61 |
15.0 |
27.4 |
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,356 |
3 |
61 |
21.3 |
30.4 |
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,825 |
1 |
2 |
2.6 |
20.6 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
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,825 |
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 |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
448 |
414 |
37 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
686 |
507 |
209 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
426 |
130 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,259 |
1,477 |
1,043 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
595 |
236 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,981 |
9,157 |
6,226 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,092 |
9,065 |
6,448 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,742 |
17,294 |
13,308 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,235 |
9,055 |
6,442 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,780 |
1,570 |
1,250 |
20.3 |
bash |
12 |
no-host |
configure.ocaml |
3,744 |
1,580 |
1,183 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,640 |
2,159 |
1,686 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,825 |
1,643 |
1,222 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
27 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
119 |
78 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,029 |
8,926 |
5,572 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,842 |
9,243 |
6,086 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,066 |
20,638 |
11,508 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,356 |
8,632 |
5,924 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,815 |
1,012 |
812 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,772 |
931 |
845 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,446 |
1,541 |
943 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,825 |
967 |
862 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
48 |
21 |
28 |
17.3 |
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,565 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,087 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,963 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,191 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,308 |
0 |
0 |
0 |
8 |
0 |
1,990 |
221 |
bash |
9 |
no-host |
bin-true |
66,439 |
0 |
0 |
0 |
8 |
0 |
1,986 |
125 |
dash |
17 |
no-host |
bin-true |
760,007 |
0 |
0 |
0 |
8 |
0 |
1,995 |
243 |
osh-cpython |
25 |
no-host |
bin-true |
129,084 |
0 |
0 |
0 |
16 |
0 |
1,989 |
146 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,538 |
0 |
0 |
0 |
32,928 |
0 |
14,545 |
1,078 |
bash |
10 |
no-host |
configure.cpython |
2,238,610 |
0 |
0 |
0 |
32,992 |
0 |
14,655 |
1,118 |
dash |
18 |
no-host |
configure.cpython |
6,153,228 |
0 |
0 |
0 |
27,512 |
0 |
13,289 |
1,197 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,110 |
0 |
0 |
0 |
27,520 |
0 |
13,295 |
1,116 |
osh-native |
4 |
no-host |
configure.ocaml |
410,703 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
166 |
bash |
12 |
no-host |
configure.ocaml |
390,518 |
0 |
0 |
0 |
5,112 |
0 |
1,872 |
154 |
dash |
20 |
no-host |
configure.ocaml |
640,714 |
0 |
0 |
0 |
5,112 |
0 |
1,848 |
183 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,888 |
0 |
0 |
0 |
5,120 |
0 |
1,919 |
167 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,313 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,727 |
1 |
0 |
0 |
42,400 |
0 |
18,669 |
1,087 |
bash |
11 |
no-host |
configure.util-linux |
2,258,537 |
0 |
0 |
0 |
42,584 |
0 |
17,403 |
1,093 |
dash |
19 |
no-host |
configure.util-linux |
5,324,648 |
10 |
0 |
0 |
39,120 |
0 |
16,957 |
1,407 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,917 |
0 |
0 |
0 |
39,120 |
0 |
16,953 |
1,008 |
osh-native |
6 |
no-host |
configure.yash |
256,870 |
0 |
0 |
0 |
4,120 |
0 |
871 |
78 |
bash |
14 |
no-host |
configure.yash |
244,442 |
0 |
0 |
0 |
3,720 |
0 |
867 |
86 |
dash |
22 |
no-host |
configure.yash |
384,252 |
0 |
0 |
0 |
3,728 |
0 |
849 |
113 |
osh-cpython |
30 |
no-host |
configure.yash |
256,524 |
0 |
0 |
0 |
3,736 |
0 |
848 |
77 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,687 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host