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.27 |
1.15 |
| bin-true |
no-host |
623 |
438 |
804 |
806 |
648 |
1.29 |
1.04 |
| configure.cpython |
no-host |
14,151 |
14,177 |
13,813 |
13,820 |
13,290 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,694 |
3,641 |
3,740 |
3,751 |
3,717 |
1.01 |
1.01 |
| configure.tcc |
no-host |
45 |
42 |
47 |
47 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,764 |
13,550 |
12,631 |
12,992 |
12,409 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,738 |
1,668 |
1,724 |
1,727 |
1,700 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.31 |
0.94 |
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,155 |
3,340 |
3,448 |
2,796 |
1.39 |
1.16 |
| bin-true |
no-host |
104,430 |
49,404 |
135,537 |
134,577 |
110,378 |
1.30 |
1.06 |
| configure.cpython |
no-host |
1,624,291 |
1,642,656 |
1,592,397 |
1,611,721 |
1,522,368 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,555 |
280,722 |
305,465 |
307,201 |
300,054 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,207 |
4,207 |
5,598 |
5,689 |
5,117 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,534,917 |
1,699,171 |
1,501,271 |
1,505,235 |
1,450,306 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,261 |
159,520 |
177,380 |
177,732 |
172,669 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
84 |
394 |
400 |
181 |
2.63 |
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 |
804 |
1 |
2 |
3.5 |
8.9 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,813 |
1 |
66 |
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,631 |
3 |
65 |
21.6 |
39.8 |
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,740 |
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,724 |
1 |
2 |
2.7 |
33.3 |
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.4 |
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.2 |
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.0 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,820 |
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,992 |
3 |
70 |
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,751 |
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.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
1 |
2 |
2.7 |
33.3 |
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 |
11 |
6 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
322 |
341 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
438 |
272 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
804 |
298 |
522 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
315 |
508 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
648 |
321 |
343 |
5.0 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,151 |
7,720 |
6,820 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,177 |
7,762 |
6,811 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,813 |
7,334 |
6,742 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,820 |
7,301 |
6,800 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,290 |
7,294 |
6,234 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,694 |
1,494 |
1,240 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,641 |
1,487 |
1,179 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,740 |
1,520 |
1,259 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,751 |
1,470 |
1,322 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,717 |
1,544 |
1,204 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
21 |
25.9 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
21 |
27 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
29 |
14 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,764 |
6,769 |
6,455 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,550 |
6,543 |
7,495 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,631 |
6,213 |
6,637 |
39.8 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,992 |
6,448 |
6,760 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,409 |
6,339 |
6,285 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,738 |
961 |
785 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,668 |
942 |
725 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,724 |
972 |
755 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,727 |
991 |
738 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,700 |
972 |
730 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.2 |
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,402 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,340 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,448 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,796 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
104,430 |
0 |
0 |
0 |
8 |
0 |
1,996 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,404 |
0 |
0 |
0 |
8 |
0 |
2,995 |
43 |
dash |
| 17 |
no-host |
bin-true |
135,537 |
0 |
0 |
0 |
16 |
0 |
2,000 |
80 |
osh-native |
| 25 |
no-host |
bin-true |
134,577 |
0 |
0 |
0 |
16 |
0 |
1,999 |
69 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,378 |
0 |
0 |
0 |
8 |
0 |
1,998 |
77 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,291 |
0 |
0 |
0 |
25,272 |
0 |
14,056 |
1,113 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,656 |
0 |
0 |
0 |
25,272 |
0 |
14,116 |
1,037 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,397 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
856 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,611,721 |
0 |
0 |
0 |
25,280 |
0 |
11,313 |
798 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,368 |
1 |
0 |
0 |
25,272 |
0 |
11,295 |
854 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,555 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,722 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
305,465 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
212 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,201 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,054 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
232 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,207 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,598 |
0 |
0 |
0 |
96 |
0 |
44 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,689 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,917 |
1 |
0 |
0 |
35,944 |
0 |
18,979 |
971 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,171 |
3 |
0 |
0 |
35,944 |
0 |
17,136 |
1,221 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,271 |
1 |
0 |
8 |
35,960 |
0 |
16,154 |
1,013 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,505,235 |
5 |
0 |
0 |
35,952 |
0 |
16,192 |
908 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,306 |
1 |
0 |
0 |
35,936 |
0 |
16,202 |
912 |
osh-static |
| 6 |
no-host |
configure.yash |
173,261 |
0 |
0 |
0 |
3,616 |
0 |
880 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,520 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
117 |
dash |
| 22 |
no-host |
configure.yash |
177,380 |
0 |
0 |
0 |
3,624 |
0 |
858 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
177,732 |
0 |
0 |
0 |
3,632 |
0 |
857 |
99 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,669 |
0 |
0 |
0 |
3,616 |
0 |
858 |
109 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
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 |
400 |
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