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 |
22 |
22 |
18 |
1.39 |
1.17 |
| bin-true |
no-host |
621 |
445 |
808 |
818 |
654 |
1.30 |
1.05 |
| configure.cpython |
no-host |
13,893 |
13,970 |
13,640 |
13,610 |
13,111 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,685 |
3,617 |
3,722 |
3,735 |
3,700 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
47 |
49 |
43 |
1.00 |
0.92 |
| configure.util-linux |
no-host |
12,588 |
13,344 |
12,551 |
12,583 |
12,234 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,696 |
1,650 |
1,706 |
1,716 |
1,710 |
1.01 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.39 |
1.05 |
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,390 |
1,158 |
3,345 |
3,449 |
2,798 |
1.40 |
1.17 |
| bin-true |
no-host |
100,419 |
49,401 |
134,575 |
136,563 |
110,354 |
1.34 |
1.10 |
| configure.cpython |
no-host |
1,626,891 |
1,641,782 |
1,598,060 |
1,602,971 |
1,521,900 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,298 |
281,255 |
306,401 |
308,120 |
299,733 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,222 |
4,198 |
5,619 |
5,667 |
5,123 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,541,557 |
1,708,872 |
1,500,545 |
1,503,444 |
1,449,666 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,446 |
159,551 |
176,577 |
177,602 |
172,673 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
83 |
389 |
398 |
181 |
2.54 |
1.18 |
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 |
808 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,640 |
2 |
67 |
14.8 |
34.5 |
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,551 |
3 |
65 |
21.6 |
39.9 |
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,722 |
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.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,706 |
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 |
22 |
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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
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,610 |
1 |
67 |
14.9 |
34.7 |
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,583 |
3 |
65 |
21.6 |
39.7 |
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,735 |
1 |
2 |
2.8 |
28.6 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,716 |
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 |
22 |
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 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
10 |
13 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
306 |
351 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
445 |
276 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
808 |
314 |
508 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
818 |
307 |
526 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
654 |
328 |
342 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,893 |
7,702 |
6,561 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,970 |
7,589 |
6,759 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,640 |
7,277 |
6,622 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,610 |
7,265 |
6,606 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,111 |
7,203 |
6,137 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,685 |
1,531 |
1,194 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,617 |
1,507 |
1,135 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,722 |
1,461 |
1,300 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,735 |
1,506 |
1,262 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,700 |
1,512 |
1,219 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
24 |
26 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
28 |
15 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,588 |
6,503 |
6,541 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,344 |
6,542 |
7,277 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,551 |
6,189 |
6,584 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,583 |
6,302 |
6,499 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,234 |
6,230 |
6,216 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,696 |
977 |
728 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,650 |
938 |
713 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,706 |
938 |
771 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,716 |
916 |
802 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,710 |
959 |
747 |
33.4 |
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 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,345 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,449 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,798 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,419 |
0 |
0 |
0 |
8 |
0 |
1,999 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,401 |
0 |
0 |
0 |
8 |
0 |
2,993 |
64 |
dash |
| 17 |
no-host |
bin-true |
134,575 |
0 |
0 |
0 |
16 |
0 |
1,993 |
89 |
osh-native |
| 25 |
no-host |
bin-true |
136,563 |
0 |
0 |
0 |
16 |
0 |
1,997 |
85 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,354 |
0 |
0 |
0 |
8 |
0 |
1,997 |
76 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,891 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,051 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,782 |
0 |
0 |
0 |
25,272 |
0 |
14,128 |
1,043 |
dash |
| 18 |
no-host |
configure.cpython |
1,598,060 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
862 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,971 |
0 |
0 |
0 |
25,280 |
0 |
11,284 |
867 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,900 |
0 |
0 |
0 |
25,272 |
0 |
11,303 |
836 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,298 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
172 |
bash |
| 12 |
no-host |
configure.ocaml |
281,255 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
306,401 |
0 |
0 |
8 |
4,440 |
0 |
2,005 |
253 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,120 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
225 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,733 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
218 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,198 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,619 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,667 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,123 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,541,557 |
1 |
0 |
0 |
35,944 |
0 |
18,890 |
1,062 |
bash |
| 11 |
no-host |
configure.util-linux |
1,708,872 |
0 |
0 |
0 |
35,936 |
0 |
17,114 |
1,230 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,545 |
0 |
0 |
0 |
35,952 |
0 |
16,195 |
1,045 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,503,444 |
4 |
0 |
0 |
35,944 |
0 |
16,195 |
909 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,666 |
1 |
0 |
0 |
35,944 |
0 |
16,210 |
940 |
osh-static |
| 6 |
no-host |
configure.yash |
173,446 |
0 |
0 |
0 |
3,616 |
0 |
879 |
109 |
bash |
| 14 |
no-host |
configure.yash |
159,551 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
95 |
dash |
| 22 |
no-host |
configure.yash |
176,577 |
0 |
0 |
0 |
3,624 |
0 |
856 |
109 |
osh-native |
| 30 |
no-host |
configure.yash |
177,602 |
0 |
0 |
0 |
3,632 |
0 |
853 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,673 |
0 |
0 |
0 |
3,624 |
0 |
858 |
96 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
389 |
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 |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host