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 |
17 |
9 |
20 |
21 |
18 |
1.24 |
1.11 |
| bin-true |
no-host |
623 |
445 |
795 |
820 |
655 |
1.27 |
1.05 |
| configure.cpython |
no-host |
13,627 |
13,781 |
13,320 |
13,467 |
12,825 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,623 |
3,610 |
3,665 |
3,672 |
3,682 |
1.01 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,397 |
13,181 |
12,343 |
12,385 |
12,101 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,686 |
1,638 |
1,681 |
1,681 |
1,672 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
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,391 |
1,156 |
3,327 |
3,417 |
2,829 |
1.39 |
1.18 |
| bin-true |
no-host |
101,473 |
49,396 |
130,308 |
136,014 |
112,037 |
1.28 |
1.10 |
| configure.cpython |
no-host |
1,617,268 |
1,635,630 |
1,583,570 |
1,602,377 |
1,514,030 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,559 |
280,863 |
306,525 |
307,251 |
300,267 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,227 |
4,199 |
5,564 |
5,677 |
5,120 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,532,257 |
1,701,334 |
1,494,538 |
1,514,215 |
1,470,508 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,325 |
159,538 |
176,873 |
177,082 |
172,795 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
395 |
401 |
184 |
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.7 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
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,320 |
1 |
69 |
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,343 |
3 |
65 |
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,665 |
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 |
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,681 |
1 |
2 |
2.7 |
33.4 |
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.6 |
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 |
820 |
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,467 |
2 |
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 |
12,385 |
3 |
64 |
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,672 |
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 |
47 |
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,681 |
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 |
21 |
1 |
2 |
3.0 |
10.1 |
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 |
17 |
10 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
314 |
346 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
445 |
279 |
172 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
795 |
312 |
499 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
820 |
311 |
526 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
316 |
357 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,627 |
7,532 |
6,483 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,781 |
7,545 |
6,645 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,320 |
7,246 |
6,348 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,467 |
7,150 |
6,616 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,825 |
7,109 |
5,959 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,623 |
1,463 |
1,202 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,610 |
1,484 |
1,151 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,665 |
1,459 |
1,246 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,672 |
1,490 |
1,222 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,682 |
1,480 |
1,233 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
21 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,397 |
6,537 |
6,325 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,181 |
6,410 |
7,264 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,343 |
6,075 |
6,491 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,385 |
6,142 |
6,469 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,101 |
6,246 |
6,076 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,686 |
954 |
741 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,638 |
918 |
723 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,681 |
905 |
778 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,681 |
950 |
735 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,672 |
960 |
715 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,391 |
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,327 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,417 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,829 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,473 |
0 |
0 |
0 |
8 |
0 |
2,000 |
74 |
bash |
| 9 |
no-host |
bin-true |
49,396 |
0 |
0 |
0 |
8 |
0 |
2,994 |
55 |
dash |
| 17 |
no-host |
bin-true |
130,308 |
0 |
0 |
0 |
16 |
0 |
2,000 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
136,014 |
0 |
0 |
0 |
16 |
0 |
1,996 |
69 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,037 |
0 |
0 |
0 |
8 |
0 |
1,998 |
50 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,617,268 |
0 |
0 |
0 |
25,272 |
0 |
14,065 |
988 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,630 |
0 |
0 |
0 |
25,280 |
0 |
14,105 |
1,005 |
dash |
| 18 |
no-host |
configure.cpython |
1,583,570 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
870 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,377 |
0 |
0 |
0 |
25,280 |
0 |
11,331 |
873 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,030 |
0 |
0 |
0 |
25,272 |
0 |
11,262 |
833 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,559 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
170 |
bash |
| 12 |
no-host |
configure.ocaml |
280,863 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
306,525 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,251 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
213 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,267 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
221 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,227 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,564 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,677 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
44 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,257 |
0 |
0 |
0 |
35,936 |
0 |
18,902 |
1,070 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,334 |
3 |
0 |
0 |
35,936 |
0 |
17,015 |
1,324 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,538 |
0 |
0 |
0 |
35,952 |
0 |
16,104 |
963 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,215 |
0 |
0 |
0 |
35,944 |
0 |
16,110 |
1,020 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,508 |
5 |
0 |
0 |
35,944 |
0 |
16,218 |
903 |
osh-static |
| 6 |
no-host |
configure.yash |
173,325 |
0 |
0 |
0 |
3,616 |
0 |
875 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,538 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
114 |
dash |
| 22 |
no-host |
configure.yash |
176,873 |
0 |
0 |
0 |
3,624 |
0 |
858 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
177,082 |
0 |
0 |
0 |
3,624 |
0 |
856 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,795 |
0 |
0 |
0 |
3,616 |
0 |
858 |
91 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
401 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host