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.31 |
1.17 |
| bin-true |
no-host |
620 |
442 |
814 |
804 |
644 |
1.31 |
1.04 |
| configure.cpython |
no-host |
13,625 |
14,101 |
13,719 |
13,641 |
12,863 |
1.01 |
0.94 |
| configure.ocaml |
no-host |
3,697 |
3,621 |
3,697 |
3,671 |
3,664 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
42 |
47 |
47 |
43 |
1.01 |
0.92 |
| configure.util-linux |
no-host |
12,545 |
13,608 |
12,535 |
12,604 |
12,059 |
1.00 |
0.96 |
| configure.yash |
no-host |
1,769 |
1,682 |
1,685 |
1,682 |
1,675 |
0.95 |
0.95 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.61 |
1.03 |
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,371 |
1,192 |
3,328 |
3,429 |
2,804 |
1.40 |
1.18 |
| bin-true |
no-host |
102,439 |
49,376 |
137,832 |
133,597 |
110,352 |
1.35 |
1.08 |
| configure.cpython |
no-host |
1,620,534 |
1,638,296 |
1,592,153 |
1,617,149 |
1,522,621 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,084 |
280,506 |
306,676 |
307,918 |
299,725 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,249 |
4,200 |
5,604 |
5,670 |
5,107 |
1.07 |
0.97 |
| configure.util-linux |
no-host |
1,535,697 |
1,705,347 |
1,494,498 |
1,507,631 |
1,450,274 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,279 |
159,579 |
176,991 |
177,341 |
172,685 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
86 |
392 |
399 |
182 |
2.61 |
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.7 |
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.9 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,719 |
1 |
67 |
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,535 |
3 |
65 |
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,697 |
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 |
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,685 |
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.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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
9.0 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,641 |
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,604 |
3 |
67 |
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,671 |
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,682 |
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 |
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 |
12 |
5 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
304 |
352 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
281 |
166 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
814 |
312 |
517 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
314 |
507 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
644 |
327 |
336 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,625 |
7,595 |
6,408 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,101 |
7,736 |
6,773 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,719 |
7,326 |
6,672 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,641 |
7,297 |
6,631 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,863 |
7,148 |
5,948 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,697 |
1,474 |
1,264 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,621 |
1,460 |
1,185 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,697 |
1,490 |
1,247 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,671 |
1,471 |
1,242 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,664 |
1,511 |
1,185 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
17 |
25 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
27 |
20 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,545 |
6,619 |
6,392 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,608 |
6,659 |
7,440 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,535 |
6,171 |
6,585 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,604 |
6,216 |
6,629 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,059 |
6,212 |
6,057 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,769 |
984 |
795 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,682 |
951 |
732 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,685 |
935 |
754 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,682 |
925 |
761 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,675 |
951 |
728 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,371 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,192 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,328 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,429 |
0 |
0 |
0 |
16 |
0 |
40 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,804 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,439 |
0 |
0 |
0 |
8 |
0 |
1,999 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,376 |
0 |
0 |
0 |
8 |
0 |
2,997 |
60 |
dash |
| 17 |
no-host |
bin-true |
137,832 |
0 |
0 |
0 |
16 |
0 |
1,999 |
80 |
osh-native |
| 25 |
no-host |
bin-true |
133,597 |
0 |
0 |
0 |
16 |
0 |
1,997 |
66 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,352 |
0 |
0 |
0 |
8 |
0 |
1,997 |
59 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,534 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,036 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,296 |
0 |
0 |
0 |
25,272 |
0 |
14,104 |
1,059 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,153 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
790 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,617,149 |
0 |
0 |
0 |
25,280 |
0 |
11,324 |
859 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,621 |
0 |
0 |
0 |
25,272 |
0 |
11,297 |
815 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,084 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
187 |
bash |
| 12 |
no-host |
configure.ocaml |
280,506 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
306,676 |
0 |
0 |
8 |
4,440 |
0 |
2,001 |
275 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,918 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
202 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,725 |
0 |
0 |
0 |
4,432 |
0 |
1,994 |
246 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
48 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,200 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,604 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,670 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,107 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,697 |
0 |
0 |
0 |
35,944 |
0 |
18,967 |
981 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,347 |
0 |
0 |
0 |
35,936 |
0 |
17,139 |
1,234 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,498 |
1 |
0 |
0 |
35,952 |
0 |
16,128 |
873 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,507,631 |
0 |
0 |
0 |
35,944 |
0 |
16,238 |
936 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,274 |
2 |
0 |
0 |
35,936 |
0 |
16,218 |
987 |
osh-static |
| 6 |
no-host |
configure.yash |
173,279 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,579 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
97 |
dash |
| 22 |
no-host |
configure.yash |
176,991 |
0 |
0 |
0 |
3,632 |
0 |
858 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
177,341 |
0 |
0 |
0 |
3,624 |
0 |
857 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,685 |
0 |
0 |
0 |
3,616 |
0 |
856 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
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