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 |
15 |
9 |
20 |
21 |
18 |
1.31 |
1.15 |
| bin-true |
no-host |
619 |
440 |
798 |
806 |
653 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,669 |
13,729 |
13,336 |
13,590 |
12,842 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,632 |
3,584 |
3,699 |
3,682 |
3,671 |
1.02 |
1.01 |
| configure.tcc |
no-host |
45 |
40 |
48 |
47 |
43 |
1.07 |
0.94 |
| configure.util-linux |
no-host |
12,414 |
13,166 |
12,413 |
12,419 |
12,083 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,673 |
1,615 |
1,682 |
1,689 |
1,673 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.45 |
1.04 |
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,387 |
1,190 |
3,303 |
3,385 |
2,808 |
1.38 |
1.18 |
| bin-true |
no-host |
103,417 |
49,397 |
132,338 |
131,964 |
111,047 |
1.28 |
1.07 |
| configure.cpython |
no-host |
1,627,287 |
1,635,490 |
1,581,308 |
1,606,234 |
1,522,851 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,269 |
281,104 |
305,804 |
305,985 |
300,891 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,222 |
4,194 |
5,621 |
5,708 |
5,145 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,545,956 |
1,702,974 |
1,500,304 |
1,521,578 |
1,458,127 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,319 |
159,498 |
176,364 |
177,299 |
173,061 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
85 |
391 |
399 |
181 |
2.62 |
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.6 |
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.4 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,336 |
1 |
66 |
14.8 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,413 |
3 |
65 |
21.6 |
39.6 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,699 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,682 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
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 |
806 |
1 |
2 |
3.5 |
9.2 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,590 |
1 |
66 |
14.8 |
34.5 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,419 |
3 |
63 |
21.6 |
39.6 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,682 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,689 |
1 |
2 |
2.7 |
33.3 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
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 |
15 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
15 |
7 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
310 |
347 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
440 |
276 |
169 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
798 |
307 |
508 |
8.4 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
313 |
510 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
653 |
310 |
359 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,669 |
7,379 |
6,672 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,729 |
7,542 |
6,584 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,336 |
7,057 |
6,552 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,590 |
7,191 |
6,687 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,842 |
7,163 |
5,912 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,632 |
1,476 |
1,196 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,584 |
1,461 |
1,147 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,699 |
1,511 |
1,227 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,682 |
1,468 |
1,255 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,671 |
1,448 |
1,254 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
21 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
21 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
19 |
29 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,414 |
6,589 |
6,281 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,166 |
6,496 |
7,152 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,413 |
6,145 |
6,490 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,419 |
6,178 |
6,466 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,083 |
6,150 |
6,147 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,673 |
938 |
743 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,615 |
940 |
677 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,682 |
947 |
739 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,689 |
953 |
739 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,673 |
932 |
742 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,190 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,303 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,385 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,808 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,417 |
0 |
0 |
0 |
8 |
0 |
2,000 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,397 |
0 |
0 |
0 |
8 |
0 |
2,994 |
45 |
dash |
| 17 |
no-host |
bin-true |
132,338 |
0 |
0 |
0 |
16 |
0 |
1,999 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
131,964 |
0 |
0 |
0 |
16 |
0 |
1,999 |
79 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,047 |
0 |
0 |
0 |
8 |
0 |
2,001 |
66 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,287 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
1,049 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,490 |
0 |
0 |
0 |
25,272 |
0 |
14,114 |
1,069 |
dash |
| 18 |
no-host |
configure.cpython |
1,581,308 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
839 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,234 |
0 |
0 |
0 |
25,288 |
0 |
11,310 |
853 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,851 |
0 |
0 |
0 |
25,272 |
0 |
11,309 |
798 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,269 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
281,104 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
191 |
dash |
| 20 |
no-host |
configure.ocaml |
305,804 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
201 |
osh-native |
| 28 |
no-host |
configure.ocaml |
305,985 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,891 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
224 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,194 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,621 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,708 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,145 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,545,956 |
0 |
0 |
232 |
35,944 |
0 |
18,937 |
1,034 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,974 |
1 |
0 |
0 |
35,936 |
0 |
17,071 |
1,198 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,304 |
1 |
0 |
0 |
35,952 |
0 |
16,213 |
891 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,578 |
3 |
0 |
0 |
35,944 |
0 |
16,161 |
891 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,458,127 |
4 |
0 |
0 |
35,936 |
0 |
16,218 |
966 |
osh-static |
| 6 |
no-host |
configure.yash |
173,319 |
0 |
0 |
0 |
3,616 |
0 |
880 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,498 |
0 |
0 |
0 |
3,624 |
0 |
998 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,364 |
0 |
0 |
0 |
3,624 |
0 |
855 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
177,299 |
0 |
0 |
0 |
3,624 |
0 |
856 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,061 |
0 |
0 |
0 |
3,624 |
0 |
859 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
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 |
391 |
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 |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host