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 |
13 |
7 |
17 |
19 |
16 |
1.36 |
1.25 |
| bin-true |
no-host |
443 |
300 |
598 |
592 |
484 |
1.35 |
1.09 |
| configure.cpython |
no-host |
11,396 |
11,658 |
11,350 |
11,374 |
11,029 |
1.00 |
0.97 |
| configure.ocaml |
no-host |
3,250 |
3,228 |
3,301 |
3,311 |
3,269 |
1.02 |
1.01 |
| configure.tcc |
no-host |
38 |
34 |
38 |
39 |
36 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
10,104 |
10,809 |
10,428 |
10,432 |
10,245 |
1.03 |
1.01 |
| configure.yash |
no-host |
1,441 |
1,375 |
1,426 |
1,448 |
1,417 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.44 |
1.13 |
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,419 |
1,174 |
3,284 |
3,457 |
2,837 |
1.36 |
1.17 |
| bin-true |
no-host |
104,893 |
49,853 |
134,749 |
132,417 |
112,491 |
1.28 |
1.07 |
| configure.cpython |
no-host |
1,627,331 |
1,641,770 |
1,584,222 |
1,613,888 |
1,521,311 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,834 |
281,745 |
307,418 |
308,164 |
301,061 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,276 |
4,215 |
5,580 |
5,676 |
5,135 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,536,242 |
1,706,005 |
1,514,065 |
1,525,594 |
1,484,795 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,867 |
159,899 |
177,029 |
177,689 |
173,045 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
394 |
404 |
183 |
2.58 |
1.20 |
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 |
2 |
0 |
0 |
0.3 |
6.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
598 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,350 |
1 |
60 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,428 |
3 |
64 |
21.6 |
39.9 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,301 |
1 |
2 |
2.8 |
28.6 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,426 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
1 |
2 |
3.0 |
9.4 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
592 |
1 |
2 |
3.5 |
9.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,374 |
1 |
61 |
14.9 |
34.7 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,432 |
3 |
63 |
21.6 |
39.7 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,311 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,448 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.1 |
117,239 |
65,805 |
42,012 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,024 |
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 |
13 |
11 |
2 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
12 |
5 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
13 |
6 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
14 |
2 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
443 |
281 |
192 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
300 |
224 |
77 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
598 |
325 |
285 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
592 |
312 |
292 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
484 |
303 |
194 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,396 |
7,500 |
4,179 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
11,658 |
7,610 |
4,341 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
11,350 |
7,227 |
4,310 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,374 |
7,155 |
4,422 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,029 |
7,141 |
4,059 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,250 |
1,490 |
781 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,228 |
1,476 |
758 |
28.9 |
dash |
| 20 |
no-host |
configure.ocaml |
3,301 |
1,460 |
858 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,311 |
1,510 |
821 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,269 |
1,482 |
803 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
38 |
25 |
13 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
22 |
12 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
38 |
28 |
11 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
39 |
27 |
12 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
36 |
22 |
15 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,104 |
6,578 |
3,874 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
10,809 |
6,580 |
4,596 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
10,428 |
6,152 |
4,423 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,432 |
6,158 |
4,416 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,245 |
6,327 |
4,053 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,441 |
954 |
486 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,375 |
931 |
439 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,426 |
948 |
474 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,448 |
945 |
500 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,417 |
942 |
474 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
0 |
0 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
7.1 |
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,419 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,174 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,284 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,457 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,837 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
104,893 |
0 |
0 |
0 |
8 |
0 |
1,996 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,853 |
0 |
0 |
0 |
8 |
0 |
2,999 |
44 |
dash |
| 17 |
no-host |
bin-true |
134,749 |
0 |
0 |
0 |
16 |
0 |
1,992 |
57 |
osh-native |
| 25 |
no-host |
bin-true |
132,417 |
0 |
0 |
0 |
16 |
0 |
1,997 |
63 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,491 |
0 |
0 |
0 |
8 |
0 |
1,998 |
56 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,331 |
0 |
0 |
0 |
25,272 |
0 |
14,109 |
1,041 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,770 |
1 |
0 |
0 |
25,272 |
0 |
14,036 |
938 |
dash |
| 18 |
no-host |
configure.cpython |
1,584,222 |
0 |
0 |
0 |
25,280 |
0 |
11,285 |
768 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,613,888 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
828 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,311 |
0 |
0 |
0 |
25,272 |
0 |
11,327 |
793 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,834 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
281,745 |
0 |
0 |
0 |
4,432 |
0 |
2,114 |
166 |
dash |
| 20 |
no-host |
configure.ocaml |
307,418 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
185 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,164 |
0 |
0 |
0 |
4,440 |
0 |
2,008 |
170 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,061 |
0 |
0 |
0 |
4,432 |
0 |
2,006 |
204 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,276 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,215 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,580 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,676 |
0 |
0 |
0 |
96 |
0 |
44 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,135 |
0 |
0 |
0 |
88 |
0 |
45 |
0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,242 |
0 |
0 |
0 |
35,936 |
0 |
18,837 |
954 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,005 |
2 |
0 |
0 |
35,936 |
0 |
16,984 |
1,036 |
dash |
| 19 |
no-host |
configure.util-linux |
1,514,065 |
3 |
0 |
0 |
35,960 |
0 |
16,196 |
920 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,525,594 |
3 |
0 |
0 |
35,944 |
0 |
16,230 |
878 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,484,795 |
1 |
0 |
0 |
35,936 |
0 |
16,113 |
950 |
osh-static |
| 6 |
no-host |
configure.yash |
173,867 |
0 |
0 |
0 |
3,616 |
0 |
878 |
89 |
bash |
| 14 |
no-host |
configure.yash |
159,899 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
99 |
dash |
| 22 |
no-host |
configure.yash |
177,029 |
0 |
0 |
0 |
3,624 |
0 |
858 |
108 |
osh-native |
| 30 |
no-host |
configure.yash |
177,689 |
0 |
0 |
0 |
3,624 |
0 |
857 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,045 |
0 |
0 |
0 |
3,616 |
0 |
858 |
81 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
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 |
404 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host