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.15 |
| bin-true |
no-host |
611 |
437 |
798 |
802 |
647 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,572 |
13,598 |
13,263 |
13,343 |
12,762 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,612 |
3,565 |
3,642 |
3,662 |
3,658 |
1.01 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,351 |
13,124 |
12,417 |
12,421 |
11,941 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,688 |
1,612 |
1,670 |
1,676 |
1,646 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.39 |
1.02 |
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,375 |
1,155 |
3,312 |
3,460 |
2,798 |
1.39 |
1.18 |
| bin-true |
no-host |
101,451 |
49,416 |
135,635 |
134,576 |
111,276 |
1.34 |
1.10 |
| configure.cpython |
no-host |
1,628,003 |
1,637,783 |
1,585,475 |
1,604,699 |
1,522,073 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,950 |
280,520 |
306,912 |
306,655 |
299,761 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,249 |
4,216 |
5,563 |
5,665 |
5,115 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,535,481 |
1,701,803 |
1,499,206 |
1,506,446 |
1,450,048 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,300 |
159,554 |
176,720 |
177,317 |
172,740 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
87 |
388 |
398 |
182 |
2.55 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
798 |
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,263 |
1 |
65 |
14.8 |
34.3 |
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,417 |
3 |
64 |
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,642 |
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 |
46 |
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,670 |
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 |
802 |
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,343 |
1 |
65 |
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,421 |
3 |
64 |
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,662 |
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,676 |
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 |
21 |
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 |
14 |
3 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
5 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
611 |
314 |
335 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
437 |
275 |
168 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
798 |
302 |
515 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
802 |
311 |
508 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
647 |
307 |
355 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,572 |
7,489 |
6,461 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
13,598 |
7,506 |
6,488 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,263 |
7,090 |
6,438 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,343 |
7,089 |
6,534 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,762 |
7,097 |
5,894 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,612 |
1,420 |
1,231 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,565 |
1,432 |
1,156 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,642 |
1,475 |
1,206 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,662 |
1,473 |
1,230 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,658 |
1,438 |
1,251 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
22 |
24 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
28 |
15 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,351 |
6,525 |
6,283 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,124 |
6,499 |
7,112 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,417 |
6,184 |
6,455 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,421 |
6,197 |
6,439 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,941 |
6,185 |
5,969 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,688 |
971 |
725 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,612 |
929 |
684 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,670 |
923 |
750 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,676 |
925 |
754 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,646 |
951 |
698 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
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 |
2 |
1 |
7.1 |
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,375 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,312 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,460 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,798 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,451 |
0 |
0 |
0 |
8 |
0 |
1,999 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,416 |
0 |
0 |
0 |
8 |
0 |
2,992 |
60 |
dash |
| 17 |
no-host |
bin-true |
135,635 |
0 |
0 |
0 |
16 |
0 |
1,999 |
75 |
osh-native |
| 25 |
no-host |
bin-true |
134,576 |
0 |
0 |
0 |
16 |
0 |
1,999 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,276 |
0 |
0 |
0 |
8 |
0 |
1,999 |
68 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,003 |
0 |
0 |
0 |
25,272 |
0 |
14,089 |
1,081 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,783 |
0 |
0 |
0 |
25,272 |
0 |
14,117 |
1,012 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,475 |
0 |
0 |
0 |
25,280 |
0 |
11,300 |
807 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,699 |
0 |
0 |
0 |
25,280 |
0 |
11,317 |
856 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,073 |
0 |
0 |
0 |
25,272 |
0 |
11,305 |
827 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,950 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,520 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
306,912 |
0 |
0 |
8 |
4,440 |
0 |
2,002 |
231 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,655 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,761 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
228 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,563 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,665 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,115 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,481 |
0 |
0 |
0 |
35,944 |
0 |
19,045 |
996 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,803 |
1 |
0 |
0 |
35,936 |
0 |
17,128 |
1,112 |
dash |
| 19 |
no-host |
configure.util-linux |
1,499,206 |
2 |
0 |
0 |
35,952 |
0 |
16,216 |
918 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,506,446 |
1 |
0 |
0 |
35,952 |
0 |
16,196 |
915 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,048 |
4 |
0 |
0 |
35,936 |
0 |
16,228 |
869 |
osh-static |
| 6 |
no-host |
configure.yash |
173,300 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,554 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
98 |
dash |
| 22 |
no-host |
configure.yash |
176,720 |
0 |
0 |
0 |
3,624 |
0 |
858 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,317 |
0 |
0 |
0 |
3,624 |
0 |
857 |
111 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,740 |
0 |
0 |
0 |
3,624 |
0 |
858 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
388 |
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