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.28 |
1.15 |
| bin-true |
no-host |
631 |
453 |
837 |
831 |
679 |
1.33 |
1.08 |
| configure.cpython |
no-host |
14,610 |
14,716 |
14,245 |
14,317 |
13,786 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,823 |
3,753 |
3,878 |
3,865 |
3,831 |
1.01 |
1.00 |
| configure.tcc |
no-host |
48 |
42 |
50 |
50 |
45 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
13,287 |
14,009 |
13,174 |
13,333 |
12,932 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,820 |
1,737 |
1,795 |
1,811 |
1,764 |
0.99 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.22 |
0.98 |
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,368 |
1,187 |
3,293 |
3,390 |
2,822 |
1.39 |
1.19 |
| bin-true |
no-host |
100,490 |
49,377 |
135,058 |
133,397 |
112,700 |
1.34 |
1.12 |
| configure.cpython |
no-host |
1,623,803 |
1,634,767 |
1,591,701 |
1,597,773 |
1,521,559 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,622 |
280,742 |
306,989 |
306,783 |
300,237 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,234 |
4,202 |
5,576 |
5,674 |
5,131 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,546,486 |
1,697,713 |
1,497,308 |
1,520,699 |
1,469,958 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,411 |
159,562 |
176,773 |
176,740 |
173,087 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
85 |
393 |
395 |
182 |
2.57 |
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,910 |
3,910 |
0 |
722 |
1,918 |
1,270 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
837 |
1 |
2 |
3.5 |
8.5 |
151,895 |
10,758 |
2,972 |
14,781 |
72,392 |
64,722 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,245 |
1 |
73 |
14.8 |
34.6 |
1,750,787 |
35,388 |
28,943 |
93,077 |
869,724 |
787,986 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,174 |
3 |
73 |
21.6 |
39.5 |
2,705,353 |
37,460 |
66,331 |
119,745 |
1,291,834 |
1,293,774 |
32,527 |
42 |
132,662 |
1 |
| configure.ocaml |
no-host |
3,878 |
1 |
2 |
2.8 |
28.7 |
149,695 |
12,650 |
6,565 |
9,213 |
70,292 |
70,190 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.2 |
30,546 |
30,546 |
0 |
1,680 |
14,470 |
14,396 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,795 |
1 |
2 |
2.7 |
33.3 |
143,471 |
11,502 |
6,619 |
7,169 |
70,512 |
65,790 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,226 |
65,792 |
42,002 |
4,975 |
54,594 |
57,657 |
277 |
3 |
84,004 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,909 |
3,909 |
0 |
721 |
1,918 |
1,270 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
831 |
1 |
2 |
3.5 |
9.0 |
151,895 |
10,762 |
2,976 |
14,781 |
72,392 |
64,722 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,317 |
1 |
70 |
14.8 |
34.7 |
1,750,786 |
35,393 |
28,948 |
93,076 |
869,724 |
787,986 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,333 |
3 |
70 |
21.6 |
39.5 |
2,705,353 |
37,466 |
66,337 |
119,745 |
1,291,834 |
1,293,774 |
32,527 |
42 |
132,674 |
1 |
| configure.ocaml |
no-host |
3,865 |
1 |
2 |
2.8 |
28.6 |
149,695 |
12,655 |
6,570 |
9,213 |
70,292 |
70,190 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.4 |
30,546 |
30,546 |
0 |
1,680 |
14,470 |
14,396 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,811 |
1 |
2 |
2.7 |
33.2 |
143,471 |
11,506 |
6,623 |
7,169 |
70,512 |
65,790 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,226 |
65,796 |
42,006 |
4,975 |
54,594 |
57,657 |
277 |
3 |
84,012 |
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 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
9 |
11 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
323 |
340 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
453 |
276 |
176 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
837 |
304 |
543 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
831 |
318 |
523 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
679 |
313 |
381 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,610 |
7,860 |
7,131 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,716 |
7,930 |
7,175 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
14,245 |
7,500 |
7,016 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,317 |
7,644 |
6,937 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,786 |
7,440 |
6,553 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,823 |
1,503 |
1,357 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,753 |
1,541 |
1,236 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,878 |
1,531 |
1,382 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,865 |
1,513 |
1,390 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,831 |
1,555 |
1,299 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
28 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
22 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
27 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
50 |
22 |
28 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
27 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,287 |
6,848 |
6,908 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
14,009 |
6,701 |
7,788 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
13,174 |
6,468 |
6,904 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,333 |
6,417 |
7,126 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,932 |
6,458 |
6,665 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,820 |
1,035 |
792 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,737 |
985 |
752 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,795 |
1,013 |
784 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,811 |
1,013 |
797 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,764 |
1,002 |
763 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
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.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,368 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,187 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,293 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,390 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,822 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,490 |
0 |
0 |
0 |
8 |
0 |
1,999 |
74 |
bash |
| 9 |
no-host |
bin-true |
49,377 |
0 |
0 |
0 |
8 |
0 |
2,992 |
51 |
dash |
| 17 |
no-host |
bin-true |
135,058 |
0 |
0 |
0 |
16 |
0 |
1,996 |
81 |
osh-native |
| 25 |
no-host |
bin-true |
133,397 |
0 |
0 |
0 |
16 |
0 |
1,994 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,700 |
0 |
0 |
0 |
8 |
0 |
1,999 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,803 |
0 |
0 |
0 |
25,272 |
0 |
14,088 |
992 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,767 |
0 |
0 |
0 |
25,272 |
0 |
14,124 |
1,116 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,701 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
841 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,597,773 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
978 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,559 |
0 |
0 |
0 |
25,272 |
0 |
11,302 |
845 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,622 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
280,742 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
306,989 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
211 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,783 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,237 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
298 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,234 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,576 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,674 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,131 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,546,486 |
2 |
0 |
0 |
35,944 |
0 |
18,992 |
1,073 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,713 |
0 |
0 |
496 |
35,936 |
0 |
17,156 |
1,136 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,308 |
1 |
0 |
0 |
35,960 |
0 |
16,125 |
900 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,699 |
0 |
0 |
0 |
35,952 |
0 |
16,234 |
953 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,469,958 |
1 |
0 |
0 |
35,944 |
0 |
16,206 |
904 |
osh-static |
| 6 |
no-host |
configure.yash |
173,411 |
0 |
0 |
0 |
3,616 |
0 |
883 |
84 |
bash |
| 14 |
no-host |
configure.yash |
159,562 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,773 |
0 |
0 |
0 |
3,624 |
0 |
857 |
108 |
osh-native |
| 30 |
no-host |
configure.yash |
176,740 |
0 |
0 |
0 |
3,624 |
0 |
857 |
93 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,087 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host