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.30 |
1.18 |
| bin-true |
no-host |
624 |
447 |
817 |
834 |
662 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,347 |
14,303 |
14,127 |
14,055 |
13,448 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,791 |
3,745 |
3,800 |
3,766 |
3,751 |
1.00 |
0.99 |
| configure.tcc |
no-host |
49 |
43 |
47 |
48 |
44 |
0.96 |
0.90 |
| configure.util-linux |
no-host |
13,017 |
13,814 |
13,176 |
12,942 |
12,481 |
1.01 |
0.96 |
| configure.yash |
no-host |
1,772 |
1,739 |
1,761 |
1,729 |
1,736 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
1.01 |
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,434 |
1,160 |
3,312 |
3,408 |
2,820 |
1.36 |
1.16 |
| bin-true |
no-host |
102,415 |
49,426 |
131,272 |
137,389 |
111,336 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,627,223 |
1,638,357 |
1,587,346 |
1,608,701 |
1,514,108 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,794 |
280,699 |
306,269 |
306,659 |
299,874 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,248 |
4,205 |
5,584 |
5,682 |
5,126 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,532,235 |
1,694,709 |
1,494,635 |
1,523,484 |
1,470,007 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,427 |
159,492 |
176,979 |
177,194 |
172,758 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
84 |
392 |
402 |
183 |
2.56 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
1 |
2 |
3.5 |
8.7 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,127 |
1 |
74 |
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,176 |
3 |
74 |
21.6 |
39.7 |
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,800 |
1 |
2 |
2.8 |
28.6 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,761 |
1 |
2 |
2.7 |
33.3 |
143,538 |
11,666 |
6,632 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.3 |
117,263 |
65,801 |
42,008 |
4,981 |
54,612 |
57,670 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
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 |
834 |
1 |
2 |
3.5 |
9.0 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,055 |
1 |
70 |
14.9 |
34.4 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,942 |
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,766 |
1 |
2 |
2.8 |
28.7 |
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.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,729 |
1 |
2 |
2.7 |
33.4 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,263 |
65,805 |
42,012 |
4,981 |
54,612 |
57,670 |
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 |
16 |
7 |
10 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
624 |
314 |
348 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
447 |
265 |
186 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
817 |
308 |
528 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
834 |
311 |
539 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
662 |
321 |
356 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,347 |
7,790 |
6,954 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
14,303 |
7,759 |
6,954 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
14,127 |
7,605 |
6,799 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,055 |
7,436 |
6,908 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,448 |
7,381 |
6,313 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,791 |
1,504 |
1,328 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,745 |
1,521 |
1,248 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,800 |
1,515 |
1,324 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,766 |
1,523 |
1,283 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,751 |
1,507 |
1,274 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
49 |
31 |
19 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
25 |
19 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
30 |
18 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
28 |
16 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,017 |
6,807 |
6,683 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,814 |
6,834 |
7,480 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,176 |
6,486 |
6,928 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,942 |
6,398 |
6,773 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,481 |
6,301 |
6,399 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,772 |
970 |
810 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,739 |
978 |
762 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,761 |
1,001 |
763 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,729 |
948 |
785 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,736 |
951 |
787 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
2 |
7.1 |
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,434 |
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,312 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,408 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,820 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,415 |
0 |
0 |
0 |
8 |
0 |
2,001 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,426 |
0 |
0 |
0 |
8 |
0 |
2,993 |
62 |
dash |
| 17 |
no-host |
bin-true |
131,272 |
0 |
0 |
0 |
16 |
0 |
1,997 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
137,389 |
0 |
0 |
0 |
16 |
0 |
2,001 |
119 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,336 |
0 |
0 |
0 |
8 |
0 |
2,001 |
102 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,223 |
0 |
0 |
0 |
25,272 |
0 |
14,103 |
1,049 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,357 |
0 |
0 |
0 |
25,272 |
0 |
14,120 |
1,078 |
dash |
| 18 |
no-host |
configure.cpython |
1,587,346 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
842 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,701 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
858 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,108 |
1 |
0 |
0 |
25,280 |
0 |
11,299 |
824 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,794 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,699 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
306,269 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
213 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,659 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
196 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,874 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
315 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,248 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,584 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,682 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,126 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,235 |
0 |
0 |
0 |
35,936 |
0 |
18,963 |
1,129 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,709 |
1 |
0 |
0 |
35,936 |
0 |
17,116 |
1,263 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,635 |
2 |
0 |
0 |
35,952 |
0 |
16,186 |
880 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,484 |
0 |
0 |
0 |
35,944 |
0 |
16,205 |
914 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,007 |
3 |
0 |
0 |
35,936 |
0 |
16,122 |
913 |
osh-static |
| 6 |
no-host |
configure.yash |
173,427 |
0 |
0 |
0 |
3,616 |
0 |
878 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,492 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,979 |
0 |
0 |
0 |
3,632 |
0 |
858 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
177,194 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,758 |
0 |
0 |
0 |
3,624 |
0 |
856 |
105 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
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