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.23 |
1.14 |
| bin-true |
no-host |
631 |
451 |
822 |
819 |
660 |
1.30 |
1.05 |
| configure.cpython |
no-host |
14,237 |
14,259 |
13,743 |
13,836 |
13,342 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,748 |
3,671 |
3,759 |
3,775 |
3,712 |
1.00 |
0.99 |
| configure.tcc |
no-host |
48 |
42 |
47 |
48 |
44 |
0.98 |
0.93 |
| configure.util-linux |
no-host |
12,879 |
13,547 |
12,741 |
12,878 |
12,487 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,770 |
1,684 |
1,715 |
1,735 |
1,714 |
0.97 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.29 |
0.95 |
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,386 |
1,161 |
3,318 |
3,432 |
2,807 |
1.39 |
1.18 |
| bin-true |
no-host |
101,446 |
49,404 |
138,555 |
137,555 |
110,306 |
1.37 |
1.09 |
| configure.cpython |
no-host |
1,629,173 |
1,636,041 |
1,592,143 |
1,597,496 |
1,521,677 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,304 |
280,684 |
306,186 |
308,110 |
299,884 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,239 |
4,190 |
5,601 |
5,674 |
5,120 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,540,470 |
1,705,624 |
1,494,796 |
1,512,051 |
1,449,301 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,346 |
159,546 |
177,117 |
177,090 |
172,684 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
394 |
400 |
180 |
2.61 |
1.19 |
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 |
822 |
1 |
2 |
3.5 |
8.9 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,743 |
1 |
69 |
14.8 |
34.4 |
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,741 |
3 |
67 |
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,759 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,652 |
6,557 |
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,715 |
1 |
2 |
2.7 |
33.3 |
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 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
819 |
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,836 |
2 |
70 |
14.9 |
34.6 |
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,878 |
3 |
69 |
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,775 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,735 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
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 |
9 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
311 |
358 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
451 |
280 |
178 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
822 |
309 |
526 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
819 |
305 |
530 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
660 |
321 |
356 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,237 |
7,714 |
6,873 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,259 |
7,849 |
6,803 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,743 |
7,259 |
6,727 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,836 |
7,293 |
6,784 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,342 |
7,368 |
6,203 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,748 |
1,520 |
1,269 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,671 |
1,479 |
1,212 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,759 |
1,487 |
1,311 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,775 |
1,557 |
1,259 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,712 |
1,485 |
1,258 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
26 |
22 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
17 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
22 |
26 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
20 |
25 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,879 |
6,661 |
6,670 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,547 |
6,625 |
7,385 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,741 |
6,294 |
6,625 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,878 |
6,350 |
6,732 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,487 |
6,315 |
6,361 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,770 |
982 |
796 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,684 |
950 |
735 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,715 |
970 |
748 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,735 |
975 |
762 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,714 |
965 |
751 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
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,386 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,318 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,432 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,807 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
osh-static |
| 1 |
no-host |
bin-true |
101,446 |
0 |
0 |
0 |
8 |
0 |
1,999 |
76 |
bash |
| 9 |
no-host |
bin-true |
49,404 |
0 |
0 |
0 |
8 |
0 |
2,995 |
53 |
dash |
| 17 |
no-host |
bin-true |
138,555 |
0 |
0 |
0 |
16 |
0 |
2,000 |
104 |
osh-native |
| 25 |
no-host |
bin-true |
137,555 |
0 |
0 |
0 |
16 |
0 |
1,997 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,306 |
0 |
0 |
0 |
8 |
0 |
1,998 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,173 |
0 |
0 |
0 |
25,272 |
0 |
14,083 |
1,018 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,041 |
0 |
0 |
0 |
25,272 |
0 |
14,110 |
994 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,143 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
850 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,597,496 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
843 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,677 |
0 |
0 |
0 |
25,272 |
0 |
11,291 |
833 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,304 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,684 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
306,186 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
244 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,110 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
204 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,884 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
232 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,239 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,190 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,601 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,674 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,470 |
1 |
0 |
232 |
35,944 |
0 |
19,001 |
1,040 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,624 |
0 |
0 |
0 |
35,936 |
0 |
17,095 |
1,216 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,796 |
1 |
0 |
0 |
35,952 |
0 |
16,148 |
1,011 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,051 |
0 |
0 |
0 |
35,944 |
0 |
16,156 |
923 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,301 |
1 |
0 |
0 |
35,944 |
0 |
16,120 |
974 |
osh-static |
| 6 |
no-host |
configure.yash |
173,346 |
0 |
0 |
0 |
3,616 |
0 |
880 |
106 |
bash |
| 14 |
no-host |
configure.yash |
159,546 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
100 |
dash |
| 22 |
no-host |
configure.yash |
177,117 |
0 |
0 |
0 |
3,624 |
0 |
856 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
177,090 |
0 |
0 |
0 |
3,632 |
0 |
858 |
107 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,684 |
0 |
0 |
0 |
3,616 |
0 |
857 |
103 |
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 |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
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