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 |
18 |
1.29 |
1.17 |
| bin-true |
no-host |
620 |
444 |
805 |
806 |
661 |
1.30 |
1.07 |
| configure.cpython |
no-host |
13,943 |
13,972 |
13,576 |
13,666 |
13,092 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,688 |
3,636 |
3,729 |
3,737 |
3,700 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
48 |
47 |
45 |
1.03 |
0.98 |
| configure.util-linux |
no-host |
12,842 |
13,318 |
12,587 |
12,742 |
12,250 |
0.98 |
0.95 |
| configure.yash |
no-host |
1,713 |
1,649 |
1,708 |
1,712 |
1,691 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.28 |
0.95 |
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,398 |
1,196 |
3,304 |
3,380 |
2,821 |
1.38 |
1.18 |
| bin-true |
no-host |
100,473 |
49,447 |
133,296 |
134,069 |
111,103 |
1.33 |
1.11 |
| configure.cpython |
no-host |
1,627,757 |
1,637,783 |
1,588,339 |
1,598,326 |
1,513,679 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,135 |
280,630 |
306,325 |
306,713 |
300,114 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,212 |
4,220 |
5,590 |
5,669 |
5,131 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,535,101 |
1,693,097 |
1,502,181 |
1,515,386 |
1,469,388 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,214 |
159,621 |
176,833 |
177,204 |
172,735 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
87 |
396 |
399 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
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 |
13,576 |
1 |
67 |
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 |
12,587 |
3 |
67 |
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,729 |
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 |
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,708 |
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 |
20 |
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 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
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 |
13,666 |
1 |
68 |
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 |
12,742 |
3 |
67 |
21.6 |
39.7 |
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,737 |
1 |
2 |
2.8 |
28.8 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,712 |
1 |
2 |
2.7 |
33.5 |
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 |
16 |
9 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
312 |
345 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
444 |
271 |
178 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
805 |
294 |
527 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
329 |
494 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
661 |
320 |
359 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,943 |
7,647 |
6,691 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,972 |
7,796 |
6,586 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,576 |
7,339 |
6,516 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,666 |
7,233 |
6,729 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,092 |
7,163 |
6,170 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,688 |
1,501 |
1,228 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,636 |
1,483 |
1,176 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,729 |
1,506 |
1,263 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,737 |
1,503 |
1,275 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,700 |
1,537 |
1,194 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
26 |
22 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
24 |
22 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,842 |
6,694 |
6,428 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,318 |
6,545 |
7,265 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,587 |
6,265 |
6,552 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,742 |
6,275 |
6,696 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,250 |
6,287 |
6,185 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,713 |
951 |
770 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,649 |
961 |
690 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,708 |
965 |
746 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,712 |
950 |
765 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,691 |
918 |
775 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,398 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,196 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,304 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,380 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,821 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,473 |
0 |
0 |
0 |
8 |
0 |
2,000 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,447 |
0 |
0 |
0 |
8 |
0 |
2,993 |
46 |
dash |
| 17 |
no-host |
bin-true |
133,296 |
0 |
0 |
0 |
16 |
0 |
1,998 |
96 |
osh-native |
| 25 |
no-host |
bin-true |
134,069 |
0 |
0 |
0 |
16 |
0 |
1,997 |
68 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,103 |
0 |
0 |
0 |
8 |
0 |
1,996 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,757 |
0 |
0 |
0 |
25,272 |
0 |
14,089 |
1,068 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,783 |
1 |
0 |
0 |
25,272 |
0 |
14,111 |
1,057 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,339 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
830 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,326 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
894 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,513,679 |
0 |
0 |
0 |
25,272 |
0 |
11,275 |
826 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,135 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,630 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
306,325 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
210 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,713 |
0 |
0 |
0 |
4,440 |
0 |
1,992 |
208 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,114 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
217 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,212 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,220 |
0 |
0 |
0 |
88 |
0 |
51 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,590 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,669 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,131 |
0 |
0 |
0 |
88 |
0 |
44 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,101 |
0 |
0 |
0 |
35,936 |
0 |
18,919 |
1,053 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,097 |
2 |
0 |
0 |
35,936 |
0 |
17,030 |
1,181 |
dash |
| 19 |
no-host |
configure.util-linux |
1,502,181 |
0 |
0 |
0 |
35,952 |
0 |
16,070 |
899 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,386 |
5 |
0 |
0 |
35,944 |
0 |
16,131 |
957 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,469,388 |
4 |
0 |
0 |
35,936 |
0 |
16,090 |
903 |
osh-static |
| 6 |
no-host |
configure.yash |
173,214 |
0 |
0 |
0 |
3,616 |
0 |
877 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,621 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
101 |
dash |
| 22 |
no-host |
configure.yash |
176,833 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,204 |
0 |
0 |
0 |
3,632 |
0 |
857 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,735 |
0 |
0 |
0 |
3,616 |
0 |
857 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
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 |
399 |
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