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 |
22 |
19 |
1.27 |
1.17 |
| bin-true |
no-host |
616 |
440 |
808 |
797 |
652 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,897 |
13,997 |
13,343 |
13,585 |
12,867 |
0.96 |
0.93 |
| configure.ocaml |
no-host |
3,706 |
3,662 |
3,693 |
3,702 |
3,651 |
1.00 |
0.98 |
| configure.tcc |
no-host |
46 |
41 |
46 |
46 |
43 |
1.00 |
0.92 |
| configure.util-linux |
no-host |
12,525 |
13,254 |
12,466 |
12,614 |
12,044 |
1.00 |
0.96 |
| configure.yash |
no-host |
1,752 |
1,652 |
1,689 |
1,683 |
1,657 |
0.96 |
0.95 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.43 |
1.07 |
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,160 |
3,268 |
3,441 |
2,846 |
1.37 |
1.19 |
| bin-true |
no-host |
102,412 |
49,365 |
132,983 |
132,388 |
111,664 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,631,973 |
1,639,449 |
1,582,045 |
1,596,235 |
1,525,318 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,894 |
280,850 |
306,473 |
306,322 |
300,369 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,210 |
4,239 |
5,614 |
5,651 |
5,137 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,538,521 |
1,699,221 |
1,493,224 |
1,519,844 |
1,451,357 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,271 |
159,582 |
176,682 |
176,940 |
172,933 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
85 |
396 |
398 |
182 |
2.64 |
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.7 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
1 |
2 |
3.5 |
8.8 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,343 |
1 |
65 |
14.8 |
34.1 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,466 |
3 |
65 |
21.6 |
39.9 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,693 |
1 |
2 |
2.8 |
28.5 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,689 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.6 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
3.5 |
9.2 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,585 |
1 |
69 |
14.8 |
34.4 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,614 |
3 |
67 |
21.6 |
39.6 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,702 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
25.9 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,683 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
616 |
306 |
350 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
440 |
272 |
174 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
808 |
320 |
505 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
797 |
312 |
502 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
652 |
314 |
354 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,897 |
7,582 |
6,698 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,997 |
7,674 |
6,719 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,343 |
7,199 |
6,415 |
34.1 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,585 |
7,256 |
6,615 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,867 |
7,023 |
6,073 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,706 |
1,480 |
1,267 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,662 |
1,466 |
1,220 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,693 |
1,449 |
1,284 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,702 |
1,461 |
1,281 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,651 |
1,468 |
1,215 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
20 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
25 |
22 |
25.9 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
24 |
19 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,525 |
6,624 |
6,355 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,254 |
6,552 |
7,192 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,466 |
6,175 |
6,510 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,614 |
6,342 |
6,495 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,044 |
6,090 |
6,162 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,752 |
952 |
807 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,652 |
900 |
754 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,689 |
943 |
749 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,683 |
927 |
759 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,657 |
946 |
714 |
33.4 |
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 |
2 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
6.9 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,268 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,441 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,846 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,412 |
0 |
0 |
0 |
8 |
0 |
1,999 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,365 |
0 |
0 |
0 |
8 |
0 |
2,997 |
56 |
dash |
| 17 |
no-host |
bin-true |
132,983 |
0 |
0 |
0 |
16 |
0 |
1,997 |
81 |
osh-native |
| 25 |
no-host |
bin-true |
132,388 |
0 |
0 |
0 |
16 |
0 |
2,001 |
73 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,664 |
0 |
0 |
0 |
8 |
0 |
1,997 |
77 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,631,973 |
0 |
0 |
0 |
25,272 |
0 |
14,057 |
1,058 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,449 |
0 |
0 |
0 |
25,272 |
0 |
14,111 |
1,020 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,045 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
826 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,596,235 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
817 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,318 |
0 |
0 |
0 |
25,272 |
0 |
11,308 |
972 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,894 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,850 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
183 |
dash |
| 20 |
no-host |
configure.ocaml |
306,473 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
239 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,322 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,369 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,210 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,239 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,614 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,651 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,137 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,521 |
0 |
0 |
232 |
35,944 |
0 |
18,989 |
1,112 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,221 |
0 |
0 |
0 |
35,936 |
0 |
17,087 |
1,177 |
dash |
| 19 |
no-host |
configure.util-linux |
1,493,224 |
3 |
0 |
0 |
35,952 |
0 |
16,192 |
977 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,844 |
1 |
0 |
0 |
35,944 |
0 |
16,191 |
927 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,357 |
0 |
0 |
0 |
35,936 |
0 |
16,141 |
944 |
osh-static |
| 6 |
no-host |
configure.yash |
173,271 |
0 |
0 |
0 |
3,616 |
0 |
877 |
106 |
bash |
| 14 |
no-host |
configure.yash |
159,582 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
98 |
dash |
| 22 |
no-host |
configure.yash |
176,682 |
0 |
0 |
0 |
3,632 |
0 |
859 |
94 |
osh-native |
| 30 |
no-host |
configure.yash |
176,940 |
0 |
0 |
0 |
3,624 |
0 |
857 |
93 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,933 |
0 |
0 |
0 |
3,616 |
0 |
858 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
396 |
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 |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host