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.27 |
1.14 |
| bin-true |
no-host |
622 |
447 |
800 |
806 |
656 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,940 |
14,277 |
13,361 |
13,662 |
12,674 |
0.96 |
0.91 |
| configure.ocaml |
no-host |
3,646 |
3,596 |
3,652 |
3,679 |
3,597 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
41 |
46 |
47 |
43 |
1.00 |
0.93 |
| configure.util-linux |
no-host |
12,478 |
13,754 |
12,271 |
12,439 |
11,838 |
0.98 |
0.95 |
| configure.yash |
no-host |
1,735 |
1,618 |
1,680 |
1,677 |
1,623 |
0.97 |
0.94 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.36 |
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,407 |
1,152 |
3,297 |
3,438 |
2,804 |
1.37 |
1.16 |
| bin-true |
no-host |
102,419 |
49,446 |
132,538 |
136,600 |
111,294 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,626,559 |
1,640,289 |
1,596,376 |
1,608,662 |
1,520,999 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,858 |
281,315 |
305,913 |
308,236 |
299,871 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,219 |
4,219 |
5,605 |
5,667 |
5,116 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,533,647 |
1,699,570 |
1,496,072 |
1,510,085 |
1,449,534 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,287 |
159,566 |
176,477 |
177,684 |
172,704 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
89 |
391 |
396 |
180 |
2.52 |
1.16 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
800 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,361 |
1 |
64 |
14.8 |
34.7 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,271 |
4 |
65 |
21.6 |
39.6 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,652 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,680 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,662 |
1 |
66 |
14.9 |
34.5 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,439 |
3 |
64 |
21.6 |
39.7 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,679 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,677 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,996 |
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 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
7 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
622 |
299 |
362 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
447 |
272 |
180 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
800 |
306 |
512 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
308 |
516 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
656 |
300 |
372 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,940 |
7,620 |
6,719 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,277 |
7,820 |
6,872 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,361 |
7,106 |
6,534 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,662 |
7,264 |
6,690 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,674 |
7,029 |
5,878 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,646 |
1,498 |
1,190 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,596 |
1,466 |
1,155 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,652 |
1,437 |
1,255 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,679 |
1,493 |
1,229 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,597 |
1,439 |
1,189 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
16 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
27 |
20 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
22 |
22 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,478 |
6,547 |
6,400 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,754 |
6,772 |
7,491 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,271 |
6,013 |
6,484 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,439 |
6,193 |
6,473 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,838 |
6,068 |
5,943 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,735 |
1,010 |
733 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,618 |
901 |
719 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,680 |
943 |
738 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,677 |
913 |
767 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,623 |
902 |
724 |
33.3 |
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 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
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,407 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,152 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,297 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,438 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,804 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,419 |
0 |
0 |
0 |
8 |
0 |
1,997 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,446 |
0 |
0 |
0 |
8 |
0 |
2,992 |
59 |
dash |
| 17 |
no-host |
bin-true |
132,538 |
0 |
0 |
0 |
16 |
0 |
2,000 |
74 |
osh-native |
| 25 |
no-host |
bin-true |
136,600 |
0 |
0 |
0 |
16 |
0 |
1,997 |
71 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,294 |
0 |
0 |
0 |
8 |
0 |
1,999 |
100 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,559 |
0 |
0 |
0 |
25,272 |
0 |
14,090 |
1,046 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,289 |
0 |
0 |
0 |
25,272 |
0 |
14,143 |
1,041 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,376 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
854 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,662 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
823 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,999 |
0 |
0 |
0 |
25,272 |
0 |
11,291 |
890 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,858 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
281,315 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
305,913 |
0 |
0 |
8 |
4,440 |
0 |
2,001 |
227 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,236 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
197 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,871 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
250 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,219 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,605 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,667 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,116 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,533,647 |
1 |
0 |
0 |
35,944 |
0 |
18,992 |
1,060 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,570 |
1 |
0 |
0 |
35,936 |
0 |
17,129 |
1,215 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,072 |
0 |
0 |
0 |
35,952 |
0 |
16,200 |
920 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,510,085 |
0 |
0 |
0 |
35,944 |
0 |
16,206 |
968 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,534 |
0 |
0 |
0 |
35,936 |
0 |
16,179 |
918 |
osh-static |
| 6 |
no-host |
configure.yash |
173,287 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,566 |
0 |
0 |
0 |
3,616 |
0 |
999 |
109 |
dash |
| 22 |
no-host |
configure.yash |
176,477 |
0 |
0 |
0 |
3,632 |
0 |
858 |
92 |
osh-native |
| 30 |
no-host |
configure.yash |
177,684 |
0 |
0 |
0 |
3,624 |
0 |
858 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,704 |
0 |
0 |
0 |
3,616 |
0 |
858 |
100 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
89 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host