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 |
19 |
1.31 |
1.18 |
| bin-true |
no-host |
630 |
442 |
813 |
809 |
658 |
1.29 |
1.05 |
| configure.cpython |
no-host |
14,112 |
14,101 |
13,736 |
13,754 |
13,218 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,724 |
3,640 |
3,743 |
3,762 |
3,715 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
44 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
12,817 |
13,486 |
12,666 |
12,722 |
12,238 |
0.99 |
0.95 |
| configure.yash |
no-host |
1,716 |
1,665 |
1,717 |
1,719 |
1,700 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.46 |
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,365 |
1,173 |
3,346 |
3,400 |
2,862 |
1.41 |
1.21 |
| bin-true |
no-host |
104,431 |
49,400 |
134,973 |
132,323 |
111,692 |
1.29 |
1.07 |
| configure.cpython |
no-host |
1,625,487 |
1,643,123 |
1,595,927 |
1,605,986 |
1,525,767 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,520 |
280,487 |
306,803 |
307,259 |
300,227 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,213 |
4,218 |
5,576 |
5,664 |
5,149 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,537,390 |
1,699,171 |
1,490,596 |
1,510,334 |
1,451,572 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,409 |
159,555 |
176,859 |
176,610 |
172,975 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
81 |
391 |
398 |
183 |
2.54 |
1.19 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
3.5 |
8.7 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,736 |
1 |
68 |
14.8 |
34.5 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,666 |
3 |
67 |
21.6 |
39.9 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,743 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,717 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
1 |
2 |
3.5 |
9.3 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,754 |
1 |
70 |
14.8 |
34.5 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,722 |
3 |
70 |
21.6 |
39.6 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,762 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,719 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
306 |
362 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
442 |
268 |
179 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
813 |
295 |
534 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
809 |
321 |
504 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
658 |
344 |
331 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,112 |
7,649 |
6,837 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,101 |
7,728 |
6,727 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,736 |
7,179 |
6,802 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,754 |
7,298 |
6,745 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,218 |
7,262 |
6,178 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,724 |
1,502 |
1,250 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,640 |
1,481 |
1,183 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,743 |
1,499 |
1,283 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,762 |
1,514 |
1,290 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,715 |
1,492 |
1,253 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
17 |
30 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
22 |
25 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
29 |
19 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
27 |
17 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,817 |
6,614 |
6,651 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,486 |
6,606 |
7,353 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,666 |
6,248 |
6,622 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,722 |
6,282 |
6,645 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,238 |
6,227 |
6,219 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,716 |
950 |
775 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,665 |
936 |
730 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,717 |
949 |
770 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,719 |
920 |
801 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,700 |
954 |
748 |
33.0 |
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 |
2 |
1 |
6.6 |
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,365 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,173 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,346 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,400 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,862 |
0 |
0 |
0 |
8 |
0 |
38 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
104,431 |
0 |
0 |
0 |
8 |
0 |
1,998 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,400 |
0 |
0 |
0 |
8 |
0 |
2,998 |
41 |
dash |
| 17 |
no-host |
bin-true |
134,973 |
0 |
0 |
0 |
16 |
0 |
1,998 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
132,323 |
0 |
0 |
0 |
16 |
0 |
2,000 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,692 |
0 |
0 |
0 |
8 |
0 |
1,999 |
61 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,487 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,023 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,123 |
0 |
0 |
0 |
25,272 |
0 |
14,132 |
1,057 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,927 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
832 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,605,986 |
0 |
0 |
0 |
25,280 |
0 |
11,314 |
813 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,767 |
0 |
0 |
0 |
25,272 |
0 |
11,306 |
797 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,520 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
210 |
bash |
| 12 |
no-host |
configure.ocaml |
280,487 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
205 |
dash |
| 20 |
no-host |
configure.ocaml |
306,803 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
216 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,259 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
177 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,227 |
2 |
0 |
0 |
4,432 |
0 |
2,000 |
321 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,213 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,218 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,576 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,664 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,149 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,390 |
1 |
0 |
232 |
35,944 |
0 |
18,909 |
1,076 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,171 |
1 |
0 |
0 |
35,936 |
0 |
17,133 |
1,215 |
dash |
| 19 |
no-host |
configure.util-linux |
1,490,596 |
3 |
0 |
0 |
35,952 |
0 |
16,145 |
891 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,510,334 |
0 |
0 |
0 |
35,944 |
0 |
16,127 |
917 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,572 |
0 |
0 |
0 |
35,944 |
0 |
16,126 |
951 |
osh-static |
| 6 |
no-host |
configure.yash |
173,409 |
0 |
0 |
0 |
3,616 |
0 |
877 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,555 |
0 |
0 |
0 |
3,624 |
0 |
1,004 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,859 |
0 |
0 |
0 |
3,624 |
0 |
853 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
176,610 |
0 |
0 |
0 |
3,632 |
0 |
858 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,975 |
0 |
0 |
0 |
3,624 |
0 |
858 |
96 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host