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 |
454 |
22 |
23.60 |
1.15 |
bin-true |
no-host |
669 |
545 |
2,250 |
812 |
3.36 |
1.21 |
configure.cpython |
no-host |
15,052 |
15,193 |
28,554 |
15,252 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,811 |
3,744 |
4,599 |
3,806 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
190 |
49 |
4.04 |
1.05 |
configure.util-linux |
no-host |
14,068 |
14,997 |
31,157 |
14,431 |
2.21 |
1.03 |
configure.yash |
no-host |
1,820 |
1,764 |
2,440 |
1,829 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.32 |
2.01 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,114 |
23,175 |
3,219 |
9.15 |
1.27 |
bin-true |
no-host |
105,323 |
65,457 |
753,543 |
126,276 |
7.15 |
1.20 |
configure.cpython |
no-host |
2,216,691 |
2,250,828 |
6,121,514 |
2,222,636 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,467 |
390,771 |
636,867 |
413,529 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,578 |
5,478 |
23,210 |
6,990 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,096,713 |
2,257,027 |
5,314,870 |
2,018,008 |
2.53 |
0.96 |
configure.yash |
no-host |
256,802 |
243,131 |
385,253 |
258,238 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,651 |
345 |
24.18 |
2.28 |
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 |
812 |
1 |
2 |
2.7 |
7.9 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,252 |
1 |
62 |
15.8 |
27.3 |
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,431 |
3 |
59 |
22.2 |
30.3 |
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,806 |
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.1 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,829 |
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 |
22 |
1 |
2 |
2.8 |
8.8 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
429 |
29 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
498 |
204 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
418 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,250 |
1,431 |
1,077 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
583 |
244 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,052 |
8,985 |
6,468 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,193 |
9,251 |
6,358 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,554 |
17,418 |
12,965 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,252 |
8,960 |
6,557 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,811 |
1,588 |
1,255 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,744 |
1,539 |
1,223 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,599 |
2,216 |
1,580 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,806 |
1,647 |
1,195 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
24 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
21 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
156 |
37 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
24 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,068 |
8,940 |
5,607 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,997 |
9,249 |
6,247 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,157 |
20,710 |
11,533 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,431 |
8,589 |
6,043 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,820 |
1,045 |
784 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,764 |
1,052 |
716 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,440 |
1,390 |
1,092 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,829 |
1,006 |
828 |
24.4 |
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 |
36 |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,175 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,219 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,323 |
0 |
0 |
0 |
8 |
0 |
1,987 |
65 |
bash |
9 |
no-host |
bin-true |
65,457 |
0 |
0 |
0 |
8 |
0 |
1,987 |
33 |
dash |
17 |
no-host |
bin-true |
753,543 |
0 |
0 |
0 |
8 |
0 |
1,999 |
141 |
osh-cpython |
25 |
no-host |
bin-true |
126,276 |
0 |
0 |
0 |
16 |
0 |
1,985 |
85 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,691 |
0 |
0 |
0 |
32,928 |
0 |
14,394 |
1,197 |
bash |
10 |
no-host |
configure.cpython |
2,250,828 |
0 |
0 |
0 |
32,992 |
0 |
14,562 |
1,395 |
dash |
18 |
no-host |
configure.cpython |
6,121,514 |
0 |
0 |
0 |
27,512 |
0 |
13,251 |
1,245 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,636 |
0 |
0 |
0 |
27,520 |
0 |
13,308 |
1,022 |
osh-native |
4 |
no-host |
configure.ocaml |
410,467 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
150 |
bash |
12 |
no-host |
configure.ocaml |
390,771 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
151 |
dash |
20 |
no-host |
configure.ocaml |
636,867 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
226 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,529 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
139 |
osh-native |
5 |
no-host |
configure.tcc |
6,578 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,210 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
10 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,713 |
1 |
0 |
0 |
42,400 |
0 |
18,503 |
1,029 |
bash |
11 |
no-host |
configure.util-linux |
2,257,027 |
1 |
0 |
0 |
42,584 |
0 |
17,440 |
1,161 |
dash |
19 |
no-host |
configure.util-linux |
5,314,870 |
7 |
0 |
0 |
39,112 |
0 |
17,050 |
1,190 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,008 |
2 |
0 |
0 |
39,120 |
0 |
17,065 |
1,177 |
osh-native |
6 |
no-host |
configure.yash |
256,802 |
0 |
0 |
0 |
4,120 |
0 |
870 |
80 |
bash |
14 |
no-host |
configure.yash |
243,131 |
0 |
0 |
0 |
3,720 |
0 |
867 |
87 |
dash |
22 |
no-host |
configure.yash |
385,253 |
0 |
0 |
0 |
3,728 |
0 |
856 |
74 |
osh-cpython |
30 |
no-host |
configure.yash |
258,238 |
0 |
0 |
0 |
3,736 |
0 |
852 |
62 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,651 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host