oils.pub
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-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
16 |
9 |
20 |
22 |
19 |
1.29 |
1.18 |
| bin-true |
no-host |
633 |
455 |
801 |
818 |
655 |
1.26 |
1.03 |
| configure.cpython |
no-host |
14,197 |
14,213 |
13,793 |
13,703 |
13,222 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,732 |
3,667 |
3,783 |
3,799 |
3,729 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
42 |
48 |
49 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,871 |
13,505 |
12,924 |
12,848 |
12,464 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,729 |
1,666 |
1,725 |
1,749 |
1,709 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.20 |
0.98 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
2,402 |
1,188 |
3,253 |
3,401 |
2,852 |
1.35 |
1.19 |
| bin-true |
no-host |
102,459 |
49,344 |
130,968 |
136,370 |
110,703 |
1.28 |
1.08 |
| configure.cpython |
no-host |
1,624,658 |
1,638,678 |
1,598,098 |
1,588,979 |
1,520,303 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,960 |
280,807 |
306,145 |
307,541 |
300,250 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,220 |
4,199 |
5,621 |
5,657 |
5,138 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,545,341 |
1,699,452 |
1,497,410 |
1,522,127 |
1,478,914 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,596 |
159,521 |
176,920 |
176,797 |
172,976 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
393 |
401 |
181 |
2.60 |
1.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.3 |
6.4 |
3,910 |
3,910 |
0 |
722 |
1,924 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
3.5 |
8.7 |
151,895 |
10,758 |
2,972 |
14,781 |
72,398 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,793 |
1 |
68 |
14.8 |
34.5 |
1,750,792 |
35,391 |
28,948 |
93,077 |
869,750 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,924 |
3 |
69 |
21.6 |
39.9 |
2,705,328 |
37,463 |
66,336 |
119,745 |
1,291,845 |
1,293,738 |
32,527 |
42 |
132,672 |
1 |
| configure.ocaml |
no-host |
3,783 |
1 |
2 |
2.8 |
28.8 |
149,695 |
12,650 |
6,565 |
9,213 |
70,298 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,544 |
30,544 |
0 |
1,680 |
14,475 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,725 |
1 |
2 |
2.7 |
33.4 |
143,457 |
11,463 |
6,619 |
7,164 |
70,521 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,226 |
65,792 |
42,002 |
4,975 |
54,600 |
57,651 |
277 |
3 |
84,004 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.2 |
3,909 |
3,909 |
0 |
721 |
1,924 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
1 |
2 |
3.5 |
9.2 |
151,895 |
10,762 |
2,976 |
14,781 |
72,398 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,703 |
1 |
67 |
14.8 |
34.5 |
1,750,791 |
35,396 |
28,953 |
93,076 |
869,750 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,848 |
3 |
68 |
21.6 |
39.7 |
2,705,328 |
37,469 |
66,342 |
119,745 |
1,291,845 |
1,293,738 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,799 |
1 |
2 |
2.8 |
28.6 |
149,695 |
12,655 |
6,570 |
9,213 |
70,298 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.1 |
30,544 |
30,544 |
0 |
1,680 |
14,475 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,749 |
1 |
2 |
2.7 |
33.4 |
143,457 |
11,467 |
6,623 |
7,164 |
70,521 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,226 |
65,796 |
42,006 |
4,975 |
54,600 |
57,651 |
277 |
3 |
84,012 |
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 |
16 |
7 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
14 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
633 |
309 |
364 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
455 |
280 |
181 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
801 |
303 |
515 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
818 |
315 |
520 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
300 |
371 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,197 |
7,709 |
6,885 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,213 |
7,663 |
6,956 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,793 |
7,333 |
6,743 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,703 |
7,281 |
6,702 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,222 |
7,216 |
6,250 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,732 |
1,481 |
1,292 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,667 |
1,473 |
1,218 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,783 |
1,512 |
1,310 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,799 |
1,539 |
1,301 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,729 |
1,516 |
1,245 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
28 |
15 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
26 |
24 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
21 |
23 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,871 |
6,658 |
6,691 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,505 |
6,613 |
7,388 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,924 |
6,365 |
6,782 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,848 |
6,258 |
6,814 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,464 |
6,282 |
6,401 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,729 |
976 |
761 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,666 |
961 |
707 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,725 |
987 |
741 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,749 |
979 |
773 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,709 |
962 |
749 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.2 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
osh-static |
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,402 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,188 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,253 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,401 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,852 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,459 |
0 |
0 |
0 |
8 |
0 |
1,995 |
79 |
bash |
| 9 |
no-host |
bin-true |
49,344 |
0 |
0 |
0 |
8 |
0 |
2,991 |
37 |
dash |
| 17 |
no-host |
bin-true |
130,968 |
0 |
0 |
0 |
16 |
0 |
1,998 |
61 |
osh-native |
| 25 |
no-host |
bin-true |
136,370 |
0 |
0 |
0 |
16 |
0 |
1,998 |
93 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,703 |
0 |
0 |
0 |
8 |
0 |
1,999 |
82 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,658 |
1 |
0 |
0 |
25,272 |
0 |
14,091 |
1,012 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,678 |
0 |
0 |
0 |
25,272 |
0 |
14,120 |
1,032 |
dash |
| 18 |
no-host |
configure.cpython |
1,598,098 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
864 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,588,979 |
0 |
0 |
0 |
25,280 |
0 |
11,288 |
815 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,303 |
2 |
0 |
0 |
25,272 |
0 |
11,300 |
844 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,960 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,807 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
183 |
dash |
| 20 |
no-host |
configure.ocaml |
306,145 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
205 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,541 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
191 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,250 |
1 |
0 |
0 |
4,432 |
0 |
1,994 |
206 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,220 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,621 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,657 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,138 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,545,341 |
1 |
0 |
0 |
35,944 |
0 |
18,947 |
1,049 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,452 |
1 |
0 |
336 |
35,936 |
0 |
17,102 |
1,179 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,410 |
0 |
0 |
0 |
35,952 |
0 |
16,187 |
854 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,127 |
0 |
0 |
0 |
35,944 |
0 |
16,133 |
891 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,914 |
0 |
0 |
0 |
35,936 |
0 |
16,195 |
898 |
osh-static |
| 6 |
no-host |
configure.yash |
173,596 |
0 |
0 |
0 |
3,616 |
0 |
879 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,521 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
94 |
dash |
| 22 |
no-host |
configure.yash |
176,920 |
0 |
0 |
0 |
3,632 |
0 |
857 |
113 |
osh-native |
| 30 |
no-host |
configure.yash |
176,797 |
0 |
0 |
0 |
3,632 |
0 |
856 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,976 |
0 |
0 |
0 |
3,624 |
0 |
858 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host