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 |
21 |
22 |
18 |
1.32 |
1.17 |
| bin-true |
no-host |
620 |
442 |
800 |
812 |
650 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,896 |
13,780 |
13,403 |
13,428 |
12,938 |
0.96 |
0.93 |
| configure.ocaml |
no-host |
3,649 |
3,599 |
3,687 |
3,700 |
3,689 |
1.01 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
44 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,529 |
13,262 |
12,570 |
12,462 |
12,153 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,691 |
1,640 |
1,694 |
1,693 |
1,677 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.33 |
1.00 |
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,409 |
1,152 |
3,304 |
3,408 |
2,802 |
1.37 |
1.16 |
| bin-true |
no-host |
102,473 |
49,440 |
134,539 |
137,629 |
110,334 |
1.31 |
1.08 |
| configure.cpython |
no-host |
1,626,223 |
1,636,053 |
1,585,818 |
1,608,206 |
1,521,422 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,089 |
280,962 |
306,156 |
307,206 |
299,738 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,211 |
4,204 |
5,613 |
5,688 |
5,130 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,538,548 |
1,706,899 |
1,501,525 |
1,505,677 |
1,449,096 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,344 |
159,540 |
176,680 |
177,649 |
172,701 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
83 |
393 |
397 |
181 |
2.60 |
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.7 |
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.5 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,403 |
1 |
66 |
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,570 |
3 |
67 |
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,687 |
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.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,694 |
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 |
21 |
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 |
812 |
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,428 |
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,462 |
3 |
65 |
21.6 |
39.9 |
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,700 |
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.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,693 |
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 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
7 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
318 |
341 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
442 |
280 |
164 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
800 |
306 |
511 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
812 |
310 |
520 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
650 |
315 |
350 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,896 |
7,643 |
6,642 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,780 |
7,549 |
6,631 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,403 |
7,036 |
6,637 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,428 |
7,164 |
6,551 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,938 |
7,178 |
5,997 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,649 |
1,418 |
1,271 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,599 |
1,490 |
1,133 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,687 |
1,471 |
1,255 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,700 |
1,508 |
1,233 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,689 |
1,504 |
1,216 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
24 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
16 |
25.9 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
22 |
22 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,529 |
6,618 |
6,380 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,262 |
6,571 |
7,183 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,570 |
6,158 |
6,640 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,462 |
6,197 |
6,487 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,153 |
6,226 |
6,143 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,691 |
974 |
725 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,640 |
933 |
709 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,694 |
957 |
740 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,693 |
942 |
754 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,677 |
948 |
731 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
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,409 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,152 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,304 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,408 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,802 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,473 |
0 |
0 |
0 |
8 |
0 |
1,997 |
49 |
bash |
| 9 |
no-host |
bin-true |
49,440 |
0 |
0 |
0 |
8 |
0 |
2,987 |
67 |
dash |
| 17 |
no-host |
bin-true |
134,539 |
0 |
0 |
0 |
16 |
0 |
2,001 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
137,629 |
0 |
0 |
0 |
16 |
0 |
1,999 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,334 |
0 |
0 |
0 |
8 |
0 |
1,995 |
95 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,223 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
1,019 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,053 |
0 |
0 |
0 |
25,272 |
0 |
14,118 |
1,010 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,818 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
844 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,206 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
867 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,422 |
0 |
0 |
0 |
25,272 |
0 |
11,302 |
846 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,089 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
280,962 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
182 |
dash |
| 20 |
no-host |
configure.ocaml |
306,156 |
0 |
0 |
8 |
4,440 |
0 |
2,001 |
236 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,206 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
183 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,738 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
233 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,204 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,613 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,688 |
0 |
0 |
0 |
96 |
0 |
43 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,548 |
0 |
0 |
0 |
35,944 |
0 |
18,967 |
1,020 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,899 |
0 |
0 |
0 |
35,936 |
0 |
17,066 |
1,200 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,525 |
2 |
0 |
0 |
35,952 |
0 |
16,219 |
891 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,505,677 |
1 |
0 |
0 |
35,944 |
0 |
16,202 |
914 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,096 |
2 |
0 |
0 |
35,936 |
0 |
16,204 |
895 |
osh-static |
| 6 |
no-host |
configure.yash |
173,344 |
0 |
0 |
0 |
3,616 |
0 |
880 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,540 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
115 |
dash |
| 22 |
no-host |
configure.yash |
176,680 |
0 |
0 |
0 |
3,632 |
0 |
859 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,649 |
0 |
0 |
0 |
3,624 |
0 |
858 |
110 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,701 |
0 |
0 |
0 |
3,616 |
0 |
858 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
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 |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host