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.34 |
1.20 |
| bin-true |
no-host |
618 |
442 |
798 |
809 |
661 |
1.29 |
1.07 |
| configure.cpython |
no-host |
14,111 |
14,112 |
13,939 |
13,840 |
13,089 |
0.99 |
0.93 |
| configure.ocaml |
no-host |
3,694 |
3,700 |
3,787 |
3,734 |
3,709 |
1.03 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
49 |
49 |
43 |
1.03 |
0.92 |
| configure.util-linux |
no-host |
12,773 |
13,589 |
12,822 |
12,735 |
12,326 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,699 |
1,684 |
1,721 |
1,756 |
1,708 |
1.01 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.49 |
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,405 |
1,174 |
3,325 |
3,396 |
2,833 |
1.38 |
1.18 |
| bin-true |
no-host |
99,458 |
49,413 |
129,011 |
134,338 |
112,690 |
1.30 |
1.13 |
| configure.cpython |
no-host |
1,623,740 |
1,635,904 |
1,584,209 |
1,602,657 |
1,522,758 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,779 |
280,643 |
306,207 |
307,779 |
300,342 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,254 |
4,208 |
5,604 |
5,678 |
5,127 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,079 |
1,694,931 |
1,519,737 |
1,525,534 |
1,447,686 |
0.99 |
0.94 |
| configure.yash |
no-host |
173,218 |
159,576 |
176,296 |
177,058 |
172,881 |
1.02 |
1.00 |
| hello-world |
no-host |
148 |
85 |
394 |
403 |
180 |
2.66 |
1.22 |
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.7 |
3,913 |
3,913 |
0 |
723 |
1,921 |
1,269 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
798 |
1 |
2 |
3.5 |
8.8 |
151,898 |
10,761 |
2,975 |
14,782 |
72,395 |
64,721 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,939 |
2 |
71 |
14.8 |
34.4 |
1,750,825 |
35,396 |
28,951 |
93,078 |
869,762 |
787,985 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,822 |
3 |
69 |
21.6 |
39.5 |
2,705,391 |
37,468 |
66,339 |
119,746 |
1,291,872 |
1,293,773 |
32,527 |
42 |
132,678 |
1 |
| configure.ocaml |
no-host |
3,787 |
1 |
2 |
2.8 |
28.6 |
149,698 |
12,653 |
6,568 |
9,214 |
70,295 |
70,189 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,549 |
30,549 |
0 |
1,681 |
14,473 |
14,395 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,721 |
1 |
2 |
2.7 |
33.5 |
143,474 |
11,505 |
6,622 |
7,168 |
70,525 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,232 |
65,798 |
42,005 |
4,977 |
54,599 |
57,656 |
277 |
3 |
84,010 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,912 |
3,912 |
0 |
722 |
1,921 |
1,269 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
1 |
2 |
3.5 |
9.0 |
151,898 |
10,765 |
2,979 |
14,782 |
72,395 |
64,721 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,840 |
2 |
72 |
14.8 |
34.5 |
1,750,824 |
35,401 |
28,956 |
93,077 |
869,762 |
787,985 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,735 |
3 |
68 |
21.6 |
39.6 |
2,705,391 |
37,474 |
66,345 |
119,746 |
1,291,872 |
1,293,773 |
32,527 |
42 |
132,690 |
1 |
| configure.ocaml |
no-host |
3,734 |
1 |
2 |
2.8 |
28.5 |
149,698 |
12,658 |
6,573 |
9,214 |
70,295 |
70,189 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.2 |
30,549 |
30,549 |
0 |
1,681 |
14,473 |
14,395 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,756 |
1 |
2 |
2.7 |
33.2 |
143,474 |
11,509 |
6,626 |
7,168 |
70,525 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,232 |
65,802 |
42,009 |
4,977 |
54,599 |
57,656 |
277 |
3 |
84,018 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
14 |
7 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
9 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
618 |
316 |
339 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
442 |
283 |
165 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
798 |
318 |
499 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
809 |
315 |
508 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
661 |
321 |
357 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,111 |
7,724 |
6,786 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,112 |
7,749 |
6,781 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,939 |
7,396 |
6,828 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,840 |
7,199 |
6,939 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,089 |
7,134 |
6,201 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,694 |
1,480 |
1,255 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,700 |
1,529 |
1,196 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,787 |
1,519 |
1,309 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,734 |
1,490 |
1,285 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,709 |
1,495 |
1,247 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
23 |
25 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
26 |
16 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
22 |
27 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
33 |
16 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
20 |
24 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,773 |
6,712 |
6,536 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,589 |
6,690 |
7,400 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,822 |
6,402 |
6,650 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,735 |
6,300 |
6,666 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,326 |
6,219 |
6,326 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,699 |
978 |
730 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,684 |
929 |
757 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,721 |
987 |
737 |
33.5 |
osh-native |
| 30 |
no-host |
configure.yash |
1,756 |
999 |
759 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,708 |
955 |
756 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,405 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,174 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,325 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,396 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
99,458 |
0 |
0 |
0 |
8 |
0 |
1,997 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,413 |
0 |
0 |
0 |
8 |
0 |
2,993 |
54 |
dash |
| 17 |
no-host |
bin-true |
129,011 |
0 |
0 |
0 |
16 |
0 |
1,998 |
70 |
osh-native |
| 25 |
no-host |
bin-true |
134,338 |
0 |
0 |
0 |
16 |
0 |
1,994 |
85 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,690 |
0 |
0 |
0 |
8 |
0 |
1,999 |
80 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,740 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,015 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,904 |
0 |
0 |
0 |
25,272 |
0 |
14,123 |
977 |
dash |
| 18 |
no-host |
configure.cpython |
1,584,209 |
0 |
0 |
0 |
25,280 |
0 |
11,308 |
825 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,657 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
853 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,758 |
1 |
0 |
0 |
25,272 |
0 |
11,301 |
820 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,779 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,643 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
189 |
dash |
| 20 |
no-host |
configure.ocaml |
306,207 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
215 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,779 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
201 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,342 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,254 |
0 |
0 |
0 |
80 |
0 |
49 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,208 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,604 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,678 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,127 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,079 |
1 |
0 |
0 |
35,944 |
0 |
18,953 |
1,084 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,931 |
2 |
0 |
496 |
35,936 |
0 |
17,109 |
1,180 |
dash |
| 19 |
no-host |
configure.util-linux |
1,519,737 |
0 |
0 |
0 |
35,960 |
0 |
16,132 |
962 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,525,534 |
1 |
0 |
0 |
35,952 |
0 |
16,144 |
948 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,447,686 |
4 |
0 |
0 |
35,936 |
0 |
16,154 |
940 |
osh-static |
| 6 |
no-host |
configure.yash |
173,218 |
0 |
0 |
0 |
3,616 |
0 |
879 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,576 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
96 |
dash |
| 22 |
no-host |
configure.yash |
176,296 |
0 |
0 |
0 |
3,624 |
0 |
857 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
177,058 |
0 |
0 |
0 |
3,632 |
0 |
859 |
96 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,881 |
0 |
0 |
0 |
3,624 |
0 |
857 |
105 |
osh-static |
| 0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
0 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
403 |
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