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.31 |
1.17 |
| bin-true |
no-host |
615 |
455 |
802 |
816 |
656 |
1.30 |
1.07 |
| configure.cpython |
no-host |
13,677 |
13,759 |
13,324 |
13,398 |
13,017 |
0.97 |
0.95 |
| configure.ocaml |
no-host |
3,670 |
3,584 |
3,667 |
3,711 |
3,705 |
1.00 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
48 |
48 |
44 |
1.05 |
0.96 |
| configure.util-linux |
no-host |
12,412 |
13,164 |
12,381 |
12,445 |
12,185 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,702 |
1,627 |
1,680 |
1,724 |
1,734 |
0.99 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.49 |
1.08 |
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,390 |
1,156 |
3,328 |
3,377 |
2,827 |
1.39 |
1.18 |
| bin-true |
no-host |
100,442 |
49,394 |
132,281 |
137,065 |
110,401 |
1.32 |
1.10 |
| configure.cpython |
no-host |
1,626,860 |
1,643,688 |
1,580,906 |
1,609,526 |
1,513,605 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,921 |
280,618 |
306,724 |
307,507 |
300,279 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,197 |
4,212 |
5,587 |
5,630 |
5,123 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,534,792 |
1,697,048 |
1,501,086 |
1,516,490 |
1,471,481 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,536 |
159,524 |
176,806 |
177,322 |
172,666 |
1.02 |
0.99 |
| hello-world |
no-host |
151 |
86 |
393 |
399 |
182 |
2.60 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
1 |
2 |
3.5 |
8.9 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,324 |
1 |
66 |
14.8 |
34.3 |
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,381 |
3 |
65 |
21.6 |
39.5 |
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,667 |
1 |
2 |
2.8 |
28.5 |
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.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,680 |
1 |
2 |
2.7 |
33.4 |
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,264 |
65,801 |
42,008 |
4,981 |
54,613 |
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.0 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,398 |
1 |
68 |
14.9 |
34.7 |
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,445 |
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,711 |
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.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,724 |
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,264 |
65,805 |
42,012 |
4,981 |
54,613 |
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 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
615 |
309 |
344 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
455 |
280 |
183 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
802 |
326 |
494 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
816 |
301 |
532 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
656 |
326 |
346 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,677 |
7,443 |
6,626 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,759 |
7,630 |
6,535 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,324 |
7,104 |
6,490 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,398 |
7,116 |
6,571 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,017 |
7,209 |
6,047 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,670 |
1,489 |
1,221 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,584 |
1,420 |
1,190 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,667 |
1,480 |
1,227 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,711 |
1,487 |
1,265 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,705 |
1,509 |
1,228 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
19 |
27 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
16 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
26 |
22 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
30 |
19 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
18 |
26 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,412 |
6,554 |
6,325 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,164 |
6,459 |
7,200 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,381 |
6,108 |
6,501 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,445 |
6,185 |
6,485 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,185 |
6,141 |
6,263 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,702 |
920 |
791 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,627 |
939 |
689 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,680 |
921 |
762 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,724 |
960 |
767 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,734 |
972 |
764 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,328 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,377 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,827 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
100,442 |
0 |
0 |
0 |
8 |
0 |
2,001 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,394 |
0 |
0 |
0 |
8 |
0 |
2,976 |
49 |
dash |
| 17 |
no-host |
bin-true |
132,281 |
0 |
0 |
0 |
16 |
0 |
1,997 |
82 |
osh-native |
| 25 |
no-host |
bin-true |
137,065 |
0 |
0 |
0 |
16 |
0 |
1,998 |
73 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,401 |
0 |
0 |
0 |
8 |
0 |
1,998 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,860 |
1 |
0 |
0 |
25,272 |
0 |
14,067 |
1,084 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,688 |
0 |
0 |
0 |
25,272 |
0 |
14,126 |
1,017 |
dash |
| 18 |
no-host |
configure.cpython |
1,580,906 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
828 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,526 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
835 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,513,605 |
0 |
0 |
0 |
25,272 |
0 |
11,301 |
867 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,921 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
239 |
bash |
| 12 |
no-host |
configure.ocaml |
280,618 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
177 |
dash |
| 20 |
no-host |
configure.ocaml |
306,724 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
242 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,507 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,279 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
210 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,197 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,587 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,630 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,123 |
0 |
0 |
0 |
88 |
0 |
46 |
4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,792 |
0 |
0 |
0 |
35,936 |
0 |
18,961 |
983 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,048 |
1 |
0 |
0 |
35,936 |
0 |
17,091 |
1,186 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,086 |
5 |
0 |
0 |
35,952 |
0 |
16,229 |
963 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,490 |
0 |
0 |
0 |
35,944 |
0 |
16,157 |
950 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,471,481 |
2 |
0 |
0 |
35,936 |
0 |
16,179 |
1,098 |
osh-static |
| 6 |
no-host |
configure.yash |
173,536 |
0 |
0 |
0 |
3,616 |
0 |
880 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,524 |
0 |
0 |
0 |
3,616 |
0 |
999 |
101 |
dash |
| 22 |
no-host |
configure.yash |
176,806 |
0 |
0 |
0 |
3,624 |
0 |
858 |
87 |
osh-native |
| 30 |
no-host |
configure.yash |
177,322 |
0 |
0 |
0 |
3,624 |
0 |
854 |
108 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,666 |
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 |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
393 |
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