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 |
24 |
18 |
1.26 |
1.11 |
| bin-true |
no-host |
625 |
441 |
803 |
816 |
658 |
1.28 |
1.05 |
| configure.cpython |
no-host |
13,866 |
14,113 |
13,654 |
13,730 |
13,039 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,681 |
3,668 |
3,710 |
3,725 |
3,688 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
49 |
43 |
1.01 |
0.93 |
| configure.util-linux |
no-host |
12,559 |
13,417 |
12,581 |
12,801 |
12,257 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,703 |
1,675 |
1,694 |
1,728 |
1,684 |
0.99 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.50 |
1.16 |
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,400 |
1,165 |
3,333 |
3,448 |
2,800 |
1.39 |
1.17 |
| bin-true |
no-host |
102,409 |
49,383 |
133,632 |
137,549 |
111,325 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,622,049 |
1,642,571 |
1,583,113 |
1,608,369 |
1,520,210 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,662 |
280,534 |
306,020 |
307,258 |
299,776 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,203 |
4,195 |
5,592 |
5,706 |
5,115 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,570 |
1,704,375 |
1,494,863 |
1,507,462 |
1,449,175 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,345 |
159,583 |
176,651 |
177,199 |
172,650 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
85 |
394 |
398 |
180 |
2.58 |
1.18 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
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,654 |
1 |
67 |
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,581 |
3 |
66 |
21.6 |
39.5 |
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,710 |
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.3 |
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 |
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 |
816 |
1 |
2 |
3.5 |
9.3 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,730 |
1 |
67 |
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,801 |
3 |
68 |
21.6 |
39.6 |
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,725 |
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 |
49 |
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,728 |
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 |
24 |
1 |
3 |
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 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
24 |
12 |
13 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
625 |
316 |
350 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
441 |
278 |
168 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
803 |
307 |
513 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
816 |
296 |
538 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
658 |
326 |
349 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,866 |
7,593 |
6,660 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,113 |
7,719 |
6,810 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
13,654 |
7,328 |
6,602 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,730 |
7,298 |
6,720 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,039 |
7,182 |
6,096 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,681 |
1,465 |
1,255 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,668 |
1,522 |
1,170 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,710 |
1,464 |
1,286 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,725 |
1,487 |
1,281 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,688 |
1,489 |
1,230 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
26 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
16 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
27 |
20 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
27 |
17 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,559 |
6,547 |
6,483 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,417 |
6,557 |
7,351 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,581 |
6,183 |
6,623 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,801 |
6,354 |
6,677 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,257 |
6,216 |
6,261 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,703 |
1,003 |
708 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,675 |
962 |
714 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,694 |
946 |
751 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,728 |
985 |
745 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,684 |
959 |
728 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
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,400 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,333 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,448 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,800 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,409 |
0 |
0 |
0 |
8 |
0 |
1,997 |
51 |
bash |
| 9 |
no-host |
bin-true |
49,383 |
0 |
0 |
0 |
8 |
0 |
2,987 |
52 |
dash |
| 17 |
no-host |
bin-true |
133,632 |
0 |
0 |
0 |
16 |
0 |
1,997 |
88 |
osh-native |
| 25 |
no-host |
bin-true |
137,549 |
0 |
0 |
0 |
16 |
0 |
2,000 |
71 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,325 |
0 |
0 |
0 |
8 |
0 |
2,000 |
61 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,049 |
0 |
0 |
0 |
25,272 |
0 |
14,078 |
1,171 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,571 |
0 |
0 |
0 |
25,272 |
0 |
14,143 |
1,002 |
dash |
| 18 |
no-host |
configure.cpython |
1,583,113 |
1 |
0 |
0 |
25,280 |
0 |
11,290 |
913 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,369 |
0 |
0 |
0 |
25,280 |
0 |
11,300 |
896 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,210 |
0 |
0 |
0 |
25,272 |
0 |
11,299 |
883 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,662 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
280,534 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
306,020 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
246 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,258 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
189 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,776 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
230 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,203 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,195 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,592 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,706 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,115 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,570 |
0 |
0 |
0 |
35,944 |
0 |
18,992 |
1,061 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,375 |
0 |
0 |
0 |
35,936 |
0 |
17,088 |
1,282 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,863 |
2 |
0 |
8 |
35,952 |
0 |
16,156 |
955 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,507,462 |
1 |
0 |
0 |
35,944 |
0 |
16,219 |
934 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,175 |
4 |
0 |
0 |
35,944 |
0 |
16,203 |
849 |
osh-static |
| 6 |
no-host |
configure.yash |
173,345 |
0 |
0 |
0 |
3,616 |
0 |
879 |
92 |
bash |
| 14 |
no-host |
configure.yash |
159,583 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,651 |
0 |
0 |
0 |
3,624 |
0 |
857 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
177,199 |
0 |
0 |
0 |
3,632 |
0 |
855 |
163 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,650 |
0 |
0 |
0 |
3,616 |
0 |
858 |
105 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
394 |
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 |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host