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 |
21 |
18 |
1.28 |
1.15 |
| bin-true |
no-host |
614 |
438 |
787 |
799 |
643 |
1.28 |
1.05 |
| configure.cpython |
no-host |
13,561 |
13,710 |
13,295 |
13,283 |
12,754 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,608 |
3,576 |
3,662 |
3,659 |
3,618 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
42 |
46 |
47 |
42 |
1.01 |
0.94 |
| configure.util-linux |
no-host |
12,352 |
13,098 |
12,270 |
12,374 |
11,956 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,664 |
1,611 |
1,672 |
1,677 |
1,654 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.41 |
1.05 |
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,407 |
1,178 |
3,325 |
3,461 |
2,817 |
1.38 |
1.17 |
| bin-true |
no-host |
102,431 |
49,372 |
129,327 |
134,032 |
111,335 |
1.26 |
1.09 |
| configure.cpython |
no-host |
1,619,061 |
1,641,657 |
1,588,750 |
1,605,046 |
1,511,271 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,174 |
280,818 |
306,214 |
306,680 |
299,697 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,249 |
4,196 |
5,527 |
5,632 |
5,117 |
1.05 |
0.97 |
| configure.util-linux |
no-host |
1,534,685 |
1,695,712 |
1,493,507 |
1,516,875 |
1,468,426 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,241 |
159,504 |
177,013 |
177,426 |
172,631 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
83 |
394 |
402 |
184 |
2.59 |
1.21 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
787 |
1 |
2 |
3.5 |
8.5 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,295 |
1 |
64 |
14.8 |
34.5 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,270 |
3 |
63 |
21.6 |
39.6 |
2,705,473 |
37,501 |
66,342 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,662 |
1 |
2 |
2.8 |
28.7 |
149,773 |
12,656 |
6,571 |
9,222 |
70,349 |
70,202 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,672 |
1 |
2 |
2.7 |
33.3 |
143,688 |
11,712 |
6,632 |
7,190 |
70,680 |
65,818 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,263 |
65,801 |
42,008 |
4,981 |
54,612 |
57,670 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
1 |
2 |
3.5 |
9.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,283 |
1 |
63 |
14.9 |
34.5 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,374 |
3 |
62 |
21.6 |
39.6 |
2,705,473 |
37,507 |
66,348 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,659 |
1 |
2 |
2.8 |
28.8 |
149,773 |
12,661 |
6,576 |
9,222 |
70,349 |
70,202 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,677 |
1 |
2 |
2.7 |
33.4 |
143,688 |
11,716 |
6,636 |
7,190 |
70,680 |
65,818 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.1 |
117,263 |
65,805 |
42,012 |
4,981 |
54,612 |
57,670 |
277 |
3 |
84,024 |
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 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
13 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
9 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
614 |
312 |
339 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
268 |
176 |
1.8 |
dash |
| 17 |
no-host |
bin-true |
787 |
308 |
493 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
799 |
314 |
500 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
643 |
326 |
336 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,561 |
7,492 |
6,450 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,710 |
7,534 |
6,575 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,295 |
7,032 |
6,537 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,283 |
7,118 |
6,448 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,754 |
7,051 |
5,933 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,608 |
1,446 |
1,202 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,576 |
1,453 |
1,147 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,662 |
1,471 |
1,230 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,659 |
1,496 |
1,204 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,618 |
1,459 |
1,187 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
27 |
19 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
28 |
14 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
26 |
21 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
21 |
27 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,352 |
6,432 |
6,383 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,098 |
6,459 |
7,129 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,270 |
6,132 |
6,352 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,374 |
6,090 |
6,508 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,956 |
6,180 |
5,989 |
39.8 |
osh-static |
| 6 |
no-host |
configure.yash |
1,664 |
930 |
743 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,611 |
921 |
692 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,672 |
942 |
732 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,677 |
920 |
760 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,654 |
934 |
722 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.4 |
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,407 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,325 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,461 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,817 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,431 |
0 |
0 |
0 |
8 |
0 |
1,998 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,372 |
0 |
0 |
0 |
8 |
0 |
2,997 |
52 |
dash |
| 17 |
no-host |
bin-true |
129,327 |
0 |
0 |
0 |
16 |
0 |
2,000 |
106 |
osh-native |
| 25 |
no-host |
bin-true |
134,032 |
0 |
0 |
0 |
16 |
0 |
1,999 |
106 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,335 |
0 |
0 |
0 |
8 |
0 |
1,997 |
60 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,061 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
989 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,657 |
0 |
0 |
0 |
25,280 |
0 |
14,118 |
1,021 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,750 |
0 |
0 |
0 |
25,280 |
0 |
11,258 |
818 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,605,046 |
0 |
0 |
0 |
25,280 |
0 |
11,313 |
858 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,511,271 |
0 |
0 |
0 |
25,272 |
0 |
11,313 |
817 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,174 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
280,818 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
306,214 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
223 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,680 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
206 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,697 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
361 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,527 |
0 |
0 |
0 |
96 |
0 |
44 |
5 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,632 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,685 |
0 |
0 |
0 |
35,936 |
0 |
18,994 |
1,072 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,712 |
2 |
0 |
0 |
35,936 |
0 |
17,077 |
1,148 |
dash |
| 19 |
no-host |
configure.util-linux |
1,493,507 |
0 |
0 |
0 |
35,952 |
0 |
16,122 |
894 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,875 |
0 |
0 |
0 |
35,944 |
0 |
16,168 |
870 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,468,426 |
1 |
0 |
0 |
35,936 |
0 |
16,217 |
936 |
osh-static |
| 6 |
no-host |
configure.yash |
173,241 |
0 |
0 |
0 |
3,616 |
0 |
880 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,504 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
94 |
dash |
| 22 |
no-host |
configure.yash |
177,013 |
0 |
0 |
0 |
3,624 |
0 |
857 |
221 |
osh-native |
| 30 |
no-host |
configure.yash |
177,426 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,631 |
0 |
0 |
0 |
3,616 |
0 |
856 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host