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.31 |
1.20 |
| bin-true |
no-host |
631 |
445 |
814 |
807 |
657 |
1.29 |
1.04 |
| configure.cpython |
no-host |
13,963 |
13,964 |
13,584 |
13,578 |
13,162 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,711 |
3,631 |
3,709 |
3,716 |
3,689 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
42 |
47 |
47 |
44 |
1.01 |
0.95 |
| configure.util-linux |
no-host |
12,697 |
13,389 |
12,605 |
12,675 |
12,385 |
0.99 |
0.98 |
| configure.yash |
no-host |
1,689 |
1,645 |
1,710 |
1,711 |
1,688 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.35 |
1.01 |
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,376 |
1,182 |
3,336 |
3,423 |
2,806 |
1.40 |
1.18 |
| bin-true |
no-host |
101,419 |
49,476 |
136,594 |
134,571 |
111,308 |
1.35 |
1.10 |
| configure.cpython |
no-host |
1,625,875 |
1,638,990 |
1,596,349 |
1,600,188 |
1,521,836 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,182 |
280,552 |
305,518 |
307,760 |
299,808 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,219 |
4,207 |
5,622 |
5,647 |
5,120 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,544,236 |
1,705,675 |
1,504,377 |
1,508,786 |
1,450,553 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,127 |
159,542 |
176,511 |
177,097 |
172,680 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
393 |
398 |
182 |
2.59 |
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.6 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,584 |
1 |
66 |
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,605 |
3 |
68 |
21.6 |
39.7 |
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,709 |
1 |
2 |
2.8 |
28.6 |
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.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,710 |
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.3 |
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 |
807 |
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,578 |
2 |
66 |
14.9 |
34.4 |
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,675 |
3 |
66 |
21.6 |
39.5 |
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,716 |
1 |
2 |
2.8 |
28.5 |
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,711 |
1 |
2 |
2.7 |
33.1 |
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.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.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
10 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
13 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
321 |
349 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
271 |
179 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
814 |
314 |
516 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
807 |
323 |
501 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
329 |
344 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,963 |
7,669 |
6,688 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,964 |
7,647 |
6,728 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,584 |
7,286 |
6,563 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,578 |
7,206 |
6,657 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,162 |
7,215 |
6,188 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,711 |
1,500 |
1,249 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,631 |
1,485 |
1,170 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,709 |
1,481 |
1,268 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,716 |
1,480 |
1,277 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,689 |
1,505 |
1,216 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
32 |
15 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
17 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
21 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,697 |
6,680 |
6,490 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,389 |
6,625 |
7,261 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,605 |
6,260 |
6,567 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,675 |
6,215 |
6,690 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,385 |
6,343 |
6,261 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,689 |
938 |
759 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,645 |
946 |
700 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,710 |
963 |
751 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,711 |
961 |
753 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,688 |
969 |
721 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
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 |
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,376 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,182 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,336 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,423 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,806 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
osh-static |
| 1 |
no-host |
bin-true |
101,419 |
0 |
0 |
0 |
8 |
0 |
1,997 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,476 |
0 |
0 |
0 |
8 |
0 |
3,001 |
51 |
dash |
| 17 |
no-host |
bin-true |
136,594 |
0 |
0 |
0 |
16 |
0 |
1,996 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
134,571 |
0 |
0 |
0 |
16 |
0 |
1,999 |
68 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,308 |
0 |
0 |
0 |
8 |
0 |
2,001 |
81 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,875 |
0 |
0 |
0 |
25,272 |
0 |
14,079 |
998 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,990 |
0 |
0 |
0 |
25,272 |
0 |
14,112 |
1,055 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,349 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
861 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,188 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
875 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,836 |
0 |
0 |
0 |
25,272 |
0 |
11,285 |
881 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,182 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
212 |
bash |
| 12 |
no-host |
configure.ocaml |
280,552 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
180 |
dash |
| 20 |
no-host |
configure.ocaml |
305,518 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
234 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,760 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
202 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,808 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
267 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,622 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,647 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,544,236 |
0 |
0 |
0 |
35,944 |
0 |
18,992 |
1,039 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,675 |
2 |
0 |
0 |
35,936 |
0 |
17,123 |
1,232 |
dash |
| 19 |
no-host |
configure.util-linux |
1,504,377 |
2 |
0 |
8 |
35,952 |
0 |
16,196 |
916 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,508,786 |
0 |
0 |
0 |
35,944 |
0 |
16,194 |
923 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,553 |
1 |
0 |
0 |
35,936 |
0 |
16,129 |
964 |
osh-static |
| 6 |
no-host |
configure.yash |
173,127 |
0 |
0 |
0 |
3,616 |
0 |
877 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,542 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
107 |
dash |
| 22 |
no-host |
configure.yash |
176,511 |
0 |
0 |
0 |
3,632 |
0 |
858 |
102 |
osh-native |
| 30 |
no-host |
configure.yash |
177,097 |
0 |
0 |
0 |
3,624 |
0 |
856 |
105 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,680 |
0 |
0 |
0 |
3,616 |
0 |
858 |
109 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host