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 |
18 |
1.33 |
1.18 |
| bin-true |
no-host |
616 |
439 |
801 |
816 |
650 |
1.30 |
1.05 |
| configure.cpython |
no-host |
13,882 |
13,931 |
13,614 |
13,799 |
13,062 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,692 |
3,671 |
3,791 |
3,708 |
3,676 |
1.03 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
46 |
43 |
1.02 |
0.93 |
| configure.util-linux |
no-host |
12,622 |
13,388 |
12,708 |
12,808 |
12,267 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,702 |
1,663 |
1,730 |
1,703 |
1,677 |
1.02 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.41 |
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,374 |
1,159 |
3,341 |
3,446 |
2,816 |
1.41 |
1.19 |
| bin-true |
no-host |
101,489 |
49,363 |
132,340 |
136,052 |
110,367 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,621,923 |
1,630,019 |
1,593,469 |
1,601,141 |
1,514,227 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,258 |
280,419 |
306,156 |
307,558 |
300,196 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,223 |
4,197 |
5,570 |
5,662 |
5,112 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,533,582 |
1,696,614 |
1,496,520 |
1,522,487 |
1,471,696 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,268 |
159,512 |
177,062 |
176,572 |
172,676 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
87 |
395 |
400 |
184 |
2.62 |
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.8 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
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 |
13,614 |
1 |
68 |
14.8 |
34.4 |
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,708 |
3 |
67 |
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,791 |
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 |
47 |
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,730 |
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.6 |
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 |
816 |
1 |
2 |
3.5 |
9.3 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,799 |
1 |
67 |
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,808 |
3 |
66 |
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,708 |
1 |
2 |
2.8 |
28.5 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,703 |
1 |
2 |
2.7 |
33.5 |
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 |
9 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
9 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
616 |
311 |
343 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
277 |
166 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
801 |
303 |
513 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
816 |
322 |
510 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
650 |
314 |
351 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,882 |
7,614 |
6,655 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,931 |
7,718 |
6,613 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,614 |
7,235 |
6,644 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,799 |
7,341 |
6,747 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,062 |
7,200 |
6,098 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,692 |
1,497 |
1,236 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,671 |
1,477 |
1,219 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,791 |
1,490 |
1,341 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,708 |
1,511 |
1,238 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,676 |
1,479 |
1,228 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
20 |
27 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
30 |
17 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
27 |
16 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,622 |
6,693 |
6,393 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,388 |
6,574 |
7,303 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,708 |
6,302 |
6,632 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,808 |
6,381 |
6,646 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,267 |
6,160 |
6,326 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,702 |
962 |
748 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,663 |
941 |
723 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,730 |
948 |
784 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,703 |
934 |
771 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,677 |
925 |
755 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.8 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,374 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,159 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,341 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,446 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,816 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,489 |
0 |
0 |
0 |
8 |
0 |
2,000 |
46 |
bash |
| 9 |
no-host |
bin-true |
49,363 |
0 |
0 |
0 |
8 |
0 |
2,995 |
50 |
dash |
| 17 |
no-host |
bin-true |
132,340 |
0 |
0 |
0 |
16 |
0 |
2,001 |
97 |
osh-native |
| 25 |
no-host |
bin-true |
136,052 |
0 |
0 |
0 |
16 |
0 |
2,001 |
72 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,367 |
0 |
0 |
0 |
8 |
0 |
2,000 |
76 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,923 |
0 |
0 |
0 |
25,272 |
0 |
14,079 |
1,010 |
bash |
| 10 |
no-host |
configure.cpython |
1,630,019 |
0 |
0 |
0 |
25,272 |
0 |
14,120 |
1,007 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,469 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
877 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,601,141 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
842 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,227 |
0 |
0 |
0 |
25,272 |
0 |
11,292 |
838 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,258 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
182 |
bash |
| 12 |
no-host |
configure.ocaml |
280,419 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
306,156 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
206 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,558 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
193 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,196 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
229 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,197 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,570 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,662 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,112 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,533,582 |
1 |
0 |
0 |
35,936 |
0 |
18,972 |
1,047 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,614 |
1 |
0 |
0 |
35,936 |
0 |
17,094 |
1,198 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,520 |
1 |
0 |
0 |
35,952 |
0 |
16,196 |
898 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,487 |
0 |
0 |
0 |
35,944 |
0 |
16,153 |
1,131 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,471,696 |
1 |
0 |
0 |
35,936 |
0 |
16,183 |
951 |
osh-static |
| 6 |
no-host |
configure.yash |
173,268 |
0 |
0 |
0 |
3,616 |
0 |
877 |
92 |
bash |
| 14 |
no-host |
configure.yash |
159,512 |
0 |
0 |
0 |
3,624 |
0 |
1,004 |
102 |
dash |
| 22 |
no-host |
configure.yash |
177,062 |
0 |
0 |
0 |
3,624 |
0 |
859 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
176,572 |
0 |
0 |
0 |
3,624 |
0 |
858 |
96 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,676 |
0 |
0 |
0 |
3,616 |
0 |
858 |
103 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host