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 |
15 |
9 |
20 |
21 |
18 |
1.32 |
1.18 |
| bin-true |
no-host |
615 |
438 |
794 |
807 |
658 |
1.29 |
1.07 |
| configure.cpython |
no-host |
13,631 |
13,761 |
13,275 |
13,440 |
12,870 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,647 |
3,587 |
3,677 |
3,679 |
3,669 |
1.01 |
1.01 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
43 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,403 |
13,141 |
12,534 |
12,444 |
12,228 |
1.01 |
0.99 |
| configure.yash |
no-host |
1,671 |
1,636 |
1,684 |
1,688 |
1,663 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.47 |
1.06 |
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,380 |
1,157 |
3,300 |
3,409 |
2,850 |
1.39 |
1.20 |
| bin-true |
no-host |
101,436 |
49,465 |
132,044 |
134,280 |
111,704 |
1.30 |
1.10 |
| configure.cpython |
no-host |
1,623,205 |
1,637,914 |
1,594,243 |
1,604,033 |
1,524,977 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,253 |
280,534 |
306,187 |
307,565 |
300,186 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,241 |
4,201 |
5,590 |
5,651 |
5,128 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,413 |
1,699,773 |
1,495,312 |
1,514,370 |
1,451,627 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,198 |
159,550 |
176,351 |
177,321 |
172,971 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
89 |
393 |
399 |
184 |
2.60 |
1.22 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
794 |
1 |
2 |
3.5 |
8.7 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,275 |
1 |
66 |
14.8 |
34.4 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,534 |
3 |
65 |
21.6 |
39.6 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,677 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,684 |
1 |
2 |
2.7 |
33.1 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.3 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
807 |
1 |
2 |
3.5 |
9.0 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,440 |
1 |
68 |
14.8 |
34.5 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,444 |
3 |
66 |
21.6 |
39.6 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,679 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,688 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.1 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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 |
15 |
11 |
5 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
615 |
306 |
344 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
276 |
167 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
794 |
322 |
488 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
807 |
299 |
524 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
658 |
330 |
344 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,631 |
7,621 |
6,390 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,761 |
7,584 |
6,576 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,275 |
7,098 |
6,450 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,440 |
7,162 |
6,566 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,870 |
7,087 |
6,021 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,647 |
1,457 |
1,229 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,587 |
1,464 |
1,146 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,677 |
1,480 |
1,236 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,679 |
1,438 |
1,283 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,669 |
1,491 |
1,210 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
24 |
21 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
24 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
24 |
22 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
20 |
23 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,403 |
6,548 |
6,313 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,141 |
6,557 |
7,066 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,534 |
6,209 |
6,545 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,444 |
6,170 |
6,486 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,228 |
6,155 |
6,292 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,671 |
930 |
750 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,636 |
908 |
730 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,684 |
897 |
789 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,688 |
955 |
733 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,663 |
959 |
707 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
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 |
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,380 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,157 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,300 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,409 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,850 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
101,436 |
0 |
0 |
0 |
8 |
0 |
1,994 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,465 |
0 |
0 |
0 |
8 |
0 |
2,994 |
56 |
dash |
| 17 |
no-host |
bin-true |
132,044 |
0 |
0 |
0 |
16 |
0 |
1,998 |
85 |
osh-native |
| 25 |
no-host |
bin-true |
134,280 |
0 |
0 |
0 |
16 |
0 |
1,999 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,704 |
0 |
0 |
0 |
8 |
0 |
2,000 |
86 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,205 |
0 |
0 |
0 |
25,272 |
0 |
14,088 |
1,020 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,914 |
0 |
0 |
0 |
25,272 |
0 |
14,103 |
1,026 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,243 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
871 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,033 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
878 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,977 |
0 |
0 |
0 |
25,272 |
0 |
11,316 |
819 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,253 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
280,534 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
306,187 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
198 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,565 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
169 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,186 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
219 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,241 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,201 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,590 |
0 |
0 |
0 |
96 |
0 |
44 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,651 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,128 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,413 |
0 |
0 |
232 |
35,944 |
0 |
18,963 |
1,012 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,773 |
1 |
0 |
0 |
35,936 |
0 |
17,106 |
1,214 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,312 |
0 |
0 |
0 |
35,952 |
0 |
16,128 |
925 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,370 |
0 |
0 |
0 |
35,944 |
0 |
16,166 |
921 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,627 |
1 |
0 |
0 |
35,936 |
0 |
16,164 |
936 |
osh-static |
| 6 |
no-host |
configure.yash |
173,198 |
0 |
0 |
0 |
3,616 |
0 |
878 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,550 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
108 |
dash |
| 22 |
no-host |
configure.yash |
176,351 |
0 |
0 |
0 |
3,632 |
0 |
858 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
177,321 |
0 |
0 |
0 |
3,632 |
0 |
856 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,971 |
0 |
0 |
0 |
3,616 |
0 |
858 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
2 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host