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 |
15 |
9 |
20 |
22 |
19 |
1.31 |
1.21 |
| bin-true |
no-host |
618 |
439 |
795 |
804 |
656 |
1.29 |
1.06 |
| configure.cpython |
no-host |
13,772 |
13,678 |
13,319 |
13,402 |
12,972 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,637 |
3,582 |
3,668 |
3,697 |
3,652 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,413 |
13,058 |
12,475 |
12,496 |
11,979 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,657 |
1,606 |
1,692 |
1,699 |
1,663 |
1.02 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.50 |
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,383 |
1,150 |
3,291 |
3,435 |
2,841 |
1.38 |
1.19 |
| bin-true |
no-host |
103,400 |
49,405 |
132,379 |
134,083 |
112,076 |
1.28 |
1.08 |
| configure.cpython |
no-host |
1,621,136 |
1,640,656 |
1,596,102 |
1,604,373 |
1,514,675 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,576 |
280,798 |
306,264 |
306,668 |
300,022 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,211 |
4,217 |
5,549 |
5,670 |
5,113 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,538,557 |
1,696,095 |
1,514,001 |
1,514,934 |
1,480,474 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,327 |
159,483 |
176,796 |
176,826 |
172,747 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
86 |
392 |
397 |
183 |
2.61 |
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.6 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
1 |
2 |
3.5 |
8.9 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,319 |
1 |
64 |
14.8 |
34.4 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,475 |
3 |
65 |
21.6 |
39.7 |
2,705,397 |
37,471 |
66,342 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,668 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,692 |
1 |
2 |
2.7 |
33.1 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
8.9 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,402 |
1 |
68 |
14.9 |
34.6 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,496 |
3 |
66 |
21.6 |
39.7 |
2,705,397 |
37,477 |
66,348 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,697 |
1 |
2 |
2.8 |
28.8 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,699 |
1 |
2 |
2.7 |
33.2 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,238 |
65,805 |
42,012 |
4,980 |
54,600 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
618 |
313 |
344 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
439 |
280 |
163 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
795 |
305 |
507 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
314 |
507 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
656 |
317 |
356 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,772 |
7,530 |
6,630 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,678 |
7,565 |
6,518 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,319 |
7,045 |
6,554 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,402 |
7,138 |
6,554 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,972 |
7,056 |
6,155 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,637 |
1,451 |
1,226 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,582 |
1,472 |
1,135 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,668 |
1,469 |
1,239 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,697 |
1,507 |
1,232 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,652 |
1,480 |
1,202 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
24 |
21 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
26 |
21 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
21 |
27 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
20 |
24 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,413 |
6,527 |
6,356 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,058 |
6,490 |
7,061 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,475 |
6,278 |
6,423 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,496 |
6,175 |
6,549 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,979 |
6,195 |
6,004 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,657 |
903 |
762 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,606 |
935 |
673 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,692 |
961 |
735 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,699 |
929 |
773 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,663 |
939 |
727 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
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,383 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,150 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,291 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,435 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,841 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,400 |
0 |
0 |
0 |
8 |
0 |
1,996 |
65 |
bash |
| 9 |
no-host |
bin-true |
49,405 |
0 |
0 |
0 |
8 |
0 |
2,994 |
63 |
dash |
| 17 |
no-host |
bin-true |
132,379 |
0 |
0 |
0 |
16 |
0 |
2,001 |
89 |
osh-native |
| 25 |
no-host |
bin-true |
134,083 |
0 |
0 |
0 |
16 |
0 |
1,999 |
71 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,076 |
0 |
0 |
0 |
8 |
0 |
1,998 |
81 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,136 |
0 |
0 |
0 |
25,272 |
0 |
14,065 |
998 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,656 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
1,016 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,102 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
813 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,373 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
979 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,675 |
0 |
0 |
0 |
25,272 |
0 |
11,298 |
832 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,576 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,798 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
306,264 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
212 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,668 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
219 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,022 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
276 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,549 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,670 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,113 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,557 |
0 |
0 |
0 |
35,936 |
0 |
18,991 |
1,042 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,095 |
0 |
0 |
0 |
35,936 |
0 |
17,094 |
1,197 |
dash |
| 19 |
no-host |
configure.util-linux |
1,514,001 |
0 |
0 |
0 |
35,952 |
0 |
16,144 |
935 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,934 |
0 |
0 |
0 |
35,952 |
0 |
16,133 |
939 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,474 |
1 |
0 |
0 |
35,936 |
0 |
16,174 |
933 |
osh-static |
| 6 |
no-host |
configure.yash |
173,327 |
0 |
0 |
0 |
3,616 |
0 |
879 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,483 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
115 |
dash |
| 22 |
no-host |
configure.yash |
176,796 |
0 |
0 |
0 |
3,624 |
0 |
858 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
176,826 |
0 |
0 |
0 |
3,624 |
0 |
856 |
105 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,747 |
0 |
0 |
0 |
3,616 |
0 |
857 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host