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.17 |
| bin-true |
no-host |
623 |
434 |
792 |
800 |
646 |
1.27 |
1.04 |
| configure.cpython |
no-host |
13,396 |
13,514 |
13,335 |
13,260 |
12,553 |
1.00 |
0.94 |
| configure.ocaml |
no-host |
3,584 |
3,556 |
3,684 |
3,622 |
3,593 |
1.03 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
47 |
46 |
43 |
1.05 |
0.95 |
| configure.util-linux |
no-host |
12,225 |
13,116 |
12,317 |
12,234 |
11,812 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,646 |
1,615 |
1,676 |
1,655 |
1,631 |
1.02 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.54 |
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,402 |
1,152 |
3,344 |
3,421 |
2,813 |
1.39 |
1.17 |
| bin-true |
no-host |
99,489 |
49,367 |
130,374 |
134,949 |
110,031 |
1.31 |
1.11 |
| configure.cpython |
no-host |
1,624,399 |
1,636,182 |
1,591,743 |
1,604,311 |
1,523,150 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,880 |
280,741 |
305,460 |
307,089 |
300,830 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,197 |
4,196 |
5,628 |
5,648 |
5,134 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,537,779 |
1,704,815 |
1,488,784 |
1,519,026 |
1,457,332 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,469 |
159,487 |
176,772 |
177,297 |
173,020 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
85 |
392 |
397 |
180 |
2.55 |
1.17 |
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 |
792 |
1 |
2 |
3.5 |
8.7 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,335 |
1 |
64 |
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,317 |
3 |
64 |
21.6 |
39.5 |
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,684 |
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 |
47 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,676 |
1 |
2 |
2.7 |
33.3 |
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.3 |
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 |
6.8 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
800 |
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,260 |
1 |
62 |
14.8 |
34.4 |
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,234 |
3 |
61 |
21.6 |
39.7 |
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,622 |
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 |
46 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,655 |
1 |
2 |
2.7 |
33.4 |
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 |
6 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
9 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
311 |
354 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
434 |
267 |
173 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
792 |
300 |
508 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
800 |
311 |
504 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
646 |
312 |
349 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,396 |
7,444 |
6,333 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,514 |
7,362 |
6,545 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,335 |
7,050 |
6,559 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,260 |
7,121 |
6,417 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,553 |
7,047 |
5,740 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,584 |
1,425 |
1,198 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,556 |
1,442 |
1,138 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,684 |
1,501 |
1,222 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,622 |
1,453 |
1,210 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,593 |
1,454 |
1,170 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
22 |
24 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,225 |
6,429 |
6,257 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,116 |
6,456 |
7,142 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,317 |
6,146 |
6,390 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,234 |
6,037 |
6,419 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,812 |
5,983 |
6,041 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,646 |
949 |
705 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,615 |
944 |
673 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,676 |
924 |
755 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,655 |
910 |
748 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,631 |
910 |
724 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.8 |
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,402 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,152 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,344 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,421 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,813 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,489 |
0 |
0 |
0 |
16 |
0 |
1,999 |
54 |
bash |
| 9 |
no-host |
bin-true |
49,367 |
0 |
0 |
0 |
8 |
0 |
2,994 |
53 |
dash |
| 17 |
no-host |
bin-true |
130,374 |
0 |
0 |
0 |
16 |
0 |
1,998 |
74 |
osh-native |
| 25 |
no-host |
bin-true |
134,949 |
0 |
0 |
0 |
16 |
0 |
1,999 |
95 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,031 |
0 |
0 |
0 |
8 |
0 |
2,001 |
78 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,399 |
0 |
0 |
0 |
25,272 |
0 |
14,072 |
1,021 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,182 |
0 |
0 |
0 |
25,272 |
0 |
14,123 |
1,068 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,743 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
802 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,311 |
1 |
0 |
0 |
25,280 |
0 |
11,330 |
864 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,150 |
0 |
0 |
0 |
25,272 |
0 |
11,308 |
853 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,880 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,741 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
183 |
dash |
| 20 |
no-host |
configure.ocaml |
305,460 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
232 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,089 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,830 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
203 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,197 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,628 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,648 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,134 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,779 |
0 |
0 |
232 |
35,944 |
0 |
18,958 |
987 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,815 |
0 |
0 |
0 |
35,936 |
0 |
17,128 |
1,230 |
dash |
| 19 |
no-host |
configure.util-linux |
1,488,784 |
1 |
0 |
0 |
35,952 |
0 |
16,194 |
905 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,026 |
0 |
0 |
0 |
35,944 |
0 |
16,138 |
893 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,332 |
2 |
0 |
0 |
35,936 |
0 |
16,139 |
896 |
osh-static |
| 6 |
no-host |
configure.yash |
173,469 |
0 |
0 |
0 |
3,616 |
0 |
878 |
86 |
bash |
| 14 |
no-host |
configure.yash |
159,487 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
100 |
dash |
| 22 |
no-host |
configure.yash |
176,772 |
0 |
0 |
0 |
3,624 |
0 |
853 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
177,297 |
0 |
0 |
0 |
3,624 |
0 |
856 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,020 |
0 |
0 |
0 |
3,616 |
0 |
856 |
119 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
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