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.16 |
| bin-true |
no-host |
630 |
450 |
798 |
826 |
666 |
1.27 |
1.06 |
| configure.cpython |
no-host |
14,153 |
14,202 |
13,714 |
13,780 |
13,210 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,726 |
3,677 |
3,765 |
3,785 |
3,678 |
1.01 |
0.99 |
| configure.tcc |
no-host |
46 |
41 |
47 |
48 |
43 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,822 |
13,474 |
12,751 |
12,888 |
12,408 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,724 |
1,678 |
1,729 |
1,732 |
1,693 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.28 |
0.96 |
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,145 |
3,275 |
3,385 |
2,834 |
1.38 |
1.19 |
| bin-true |
no-host |
100,386 |
49,421 |
131,325 |
137,096 |
112,016 |
1.31 |
1.12 |
| configure.cpython |
no-host |
1,619,340 |
1,643,438 |
1,593,176 |
1,604,679 |
1,511,959 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,219 |
280,558 |
305,495 |
307,431 |
300,196 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,237 |
4,186 |
5,621 |
5,702 |
5,120 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,532,664 |
1,695,460 |
1,496,051 |
1,518,805 |
1,470,199 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,126 |
159,588 |
176,768 |
176,914 |
172,741 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
395 |
399 |
184 |
2.58 |
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 |
798 |
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,714 |
1 |
70 |
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,751 |
3 |
70 |
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,765 |
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.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,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
826 |
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,780 |
1 |
68 |
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,888 |
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,785 |
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 |
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,732 |
1 |
2 |
2.7 |
33.3 |
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 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
15 |
7 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
310 |
358 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
450 |
277 |
177 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
798 |
302 |
515 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
826 |
299 |
543 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
319 |
364 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,153 |
7,759 |
6,795 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,202 |
7,770 |
6,841 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,714 |
7,208 |
6,791 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,780 |
7,296 |
6,785 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,210 |
7,380 |
6,073 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,726 |
1,458 |
1,309 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,677 |
1,451 |
1,250 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,765 |
1,498 |
1,309 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,785 |
1,501 |
1,327 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,678 |
1,488 |
1,222 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
28 |
20 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
19 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,822 |
6,670 |
6,638 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,474 |
6,573 |
7,404 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,751 |
6,370 |
6,618 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,888 |
6,426 |
6,699 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,408 |
6,230 |
6,405 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,724 |
976 |
756 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,678 |
975 |
704 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,729 |
943 |
789 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,732 |
993 |
743 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,693 |
965 |
731 |
33.5 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,374 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,145 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,275 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,385 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,834 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,386 |
0 |
0 |
0 |
8 |
0 |
1,998 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,421 |
0 |
0 |
0 |
8 |
0 |
2,988 |
74 |
dash |
| 17 |
no-host |
bin-true |
131,325 |
0 |
0 |
0 |
16 |
0 |
1,999 |
73 |
osh-native |
| 25 |
no-host |
bin-true |
137,096 |
0 |
0 |
0 |
16 |
0 |
1,997 |
88 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,016 |
0 |
0 |
0 |
8 |
0 |
1,998 |
70 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,340 |
0 |
0 |
0 |
25,272 |
0 |
14,108 |
972 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,438 |
0 |
0 |
0 |
25,272 |
0 |
14,148 |
1,044 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,176 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
854 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,679 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
821 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,511,959 |
1 |
0 |
0 |
25,272 |
0 |
11,307 |
854 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,219 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,558 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
194 |
dash |
| 20 |
no-host |
configure.ocaml |
305,495 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
209 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,431 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
212 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,196 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
213 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,237 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,186 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,621 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,702 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,664 |
0 |
0 |
0 |
35,936 |
0 |
18,998 |
1,026 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,460 |
0 |
0 |
0 |
35,936 |
0 |
17,138 |
1,220 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,051 |
1 |
0 |
0 |
35,952 |
0 |
16,143 |
898 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,805 |
2 |
0 |
0 |
35,944 |
0 |
16,244 |
957 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,199 |
4 |
0 |
0 |
35,944 |
0 |
16,103 |
958 |
osh-static |
| 6 |
no-host |
configure.yash |
173,126 |
0 |
0 |
0 |
3,616 |
0 |
881 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,588 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
95 |
dash |
| 22 |
no-host |
configure.yash |
176,768 |
0 |
0 |
0 |
3,624 |
0 |
857 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
176,914 |
0 |
0 |
0 |
3,632 |
0 |
859 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,741 |
0 |
0 |
0 |
3,616 |
0 |
858 |
147 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
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