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 |
21 |
22 |
18 |
1.34 |
1.16 |
| bin-true |
no-host |
623 |
444 |
808 |
804 |
660 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,988 |
14,126 |
14,026 |
14,032 |
13,546 |
1.00 |
0.97 |
| configure.ocaml |
no-host |
3,700 |
3,692 |
3,831 |
3,807 |
3,708 |
1.04 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
48 |
48 |
43 |
1.02 |
0.93 |
| configure.util-linux |
no-host |
12,655 |
13,787 |
13,036 |
13,125 |
12,357 |
1.03 |
0.98 |
| configure.yash |
no-host |
1,717 |
1,716 |
1,752 |
1,791 |
1,694 |
1.02 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.37 |
1.03 |
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,367 |
1,204 |
3,293 |
3,453 |
2,827 |
1.39 |
1.19 |
| bin-true |
no-host |
102,443 |
49,428 |
131,343 |
132,058 |
111,039 |
1.28 |
1.08 |
| configure.cpython |
no-host |
1,634,933 |
1,639,017 |
1,588,832 |
1,600,034 |
1,514,008 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,550 |
280,849 |
306,360 |
306,949 |
300,063 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,249 |
4,203 |
5,589 |
5,598 |
5,124 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,535,242 |
1,695,500 |
1,493,975 |
1,518,014 |
1,469,832 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,131 |
159,533 |
176,533 |
177,478 |
172,868 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
84 |
393 |
397 |
183 |
2.57 |
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 |
3 |
0 |
0 |
0.3 |
6.7 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
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 |
14,026 |
1 |
68 |
14.8 |
34.5 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,036 |
3 |
69 |
21.6 |
39.6 |
2,705,473 |
37,501 |
66,342 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,831 |
1 |
2 |
2.8 |
28.7 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.4 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,752 |
1 |
2 |
2.7 |
33.3 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
3 |
0 |
0 |
0.3 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
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 |
14,032 |
1 |
69 |
14.9 |
34.5 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,125 |
3 |
69 |
21.6 |
39.6 |
2,705,473 |
37,507 |
66,348 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,807 |
1 |
2 |
2.8 |
28.6 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.0 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,791 |
1 |
2 |
2.7 |
33.4 |
143,496 |
11,512 |
6,629 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
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 |
15 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
319 |
342 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
444 |
279 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
808 |
315 |
510 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
312 |
509 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
660 |
338 |
339 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,988 |
7,682 |
6,692 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,126 |
7,786 |
6,738 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
14,026 |
7,435 |
6,875 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,032 |
7,463 |
6,859 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,546 |
7,410 |
6,257 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,700 |
1,484 |
1,258 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,692 |
1,539 |
1,178 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,831 |
1,500 |
1,368 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,807 |
1,524 |
1,325 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,708 |
1,472 |
1,265 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
22 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
24 |
24 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
21 |
23 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,655 |
6,696 |
6,428 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,787 |
6,681 |
7,596 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,036 |
6,461 |
6,803 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,125 |
6,416 |
6,942 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,357 |
6,291 |
6,285 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,717 |
938 |
784 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,716 |
939 |
776 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,752 |
970 |
785 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,791 |
988 |
805 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,694 |
928 |
768 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
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,367 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,204 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,293 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,453 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,827 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,443 |
0 |
0 |
0 |
8 |
0 |
1,998 |
75 |
bash |
| 9 |
no-host |
bin-true |
49,428 |
0 |
0 |
0 |
8 |
0 |
2,997 |
54 |
dash |
| 17 |
no-host |
bin-true |
131,343 |
0 |
0 |
0 |
16 |
0 |
1,998 |
91 |
osh-native |
| 25 |
no-host |
bin-true |
132,058 |
0 |
0 |
0 |
16 |
0 |
2,000 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,039 |
0 |
0 |
0 |
8 |
0 |
2,000 |
69 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,634,933 |
0 |
0 |
0 |
25,272 |
0 |
14,078 |
1,144 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,017 |
1 |
0 |
0 |
25,272 |
0 |
14,116 |
1,049 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,832 |
0 |
0 |
0 |
25,280 |
0 |
11,289 |
885 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,034 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
847 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,008 |
1 |
0 |
0 |
25,272 |
0 |
11,313 |
840 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,550 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
280,849 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
180 |
dash |
| 20 |
no-host |
configure.ocaml |
306,360 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
220 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,949 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
205 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,063 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
224 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,203 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,589 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,598 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,124 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,242 |
2 |
0 |
0 |
35,936 |
0 |
18,970 |
1,048 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,500 |
0 |
0 |
0 |
35,936 |
0 |
17,140 |
1,256 |
dash |
| 19 |
no-host |
configure.util-linux |
1,493,975 |
1 |
0 |
0 |
35,952 |
0 |
16,132 |
942 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,014 |
2 |
0 |
0 |
35,944 |
0 |
16,205 |
921 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,469,832 |
2 |
0 |
0 |
35,936 |
0 |
16,183 |
920 |
osh-static |
| 6 |
no-host |
configure.yash |
173,131 |
0 |
0 |
0 |
3,616 |
0 |
881 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,533 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,533 |
0 |
0 |
0 |
3,632 |
0 |
857 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,478 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,868 |
0 |
0 |
0 |
3,624 |
0 |
858 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
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 |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host