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.31 |
1.16 |
| bin-true |
no-host |
631 |
440 |
799 |
820 |
648 |
1.27 |
1.03 |
| configure.cpython |
no-host |
14,206 |
14,081 |
13,660 |
13,930 |
13,132 |
0.96 |
0.92 |
| configure.ocaml |
no-host |
3,722 |
3,621 |
3,693 |
3,735 |
3,689 |
0.99 |
0.99 |
| configure.tcc |
no-host |
49 |
41 |
47 |
47 |
44 |
0.95 |
0.89 |
| configure.util-linux |
no-host |
12,602 |
13,363 |
12,594 |
12,704 |
12,308 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,738 |
1,671 |
1,684 |
1,724 |
1,682 |
0.97 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.26 |
0.93 |
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,384 |
1,151 |
3,318 |
3,426 |
2,829 |
1.39 |
1.19 |
| bin-true |
no-host |
102,483 |
49,414 |
132,322 |
135,047 |
112,034 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,624,529 |
1,639,945 |
1,600,017 |
1,594,110 |
1,511,336 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,743 |
281,378 |
306,602 |
307,037 |
300,085 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,226 |
4,217 |
5,561 |
5,639 |
5,125 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,532,343 |
1,694,638 |
1,490,911 |
1,520,205 |
1,470,054 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,391 |
159,497 |
177,046 |
176,875 |
172,737 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
85 |
392 |
398 |
185 |
2.61 |
1.23 |
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.4 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
1 |
2 |
3.5 |
8.5 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,660 |
1 |
67 |
14.8 |
34.7 |
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,594 |
3 |
67 |
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,693 |
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 |
47 |
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,684 |
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.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,930 |
1 |
69 |
14.9 |
34.6 |
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,704 |
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,735 |
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,724 |
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 |
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 |
8 |
9 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
310 |
358 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
440 |
272 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
799 |
292 |
525 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
820 |
304 |
533 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
648 |
313 |
352 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,206 |
7,838 |
6,766 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,081 |
7,654 |
6,834 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,660 |
7,254 |
6,686 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,930 |
7,422 |
6,794 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,132 |
7,204 |
6,169 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,722 |
1,513 |
1,249 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,621 |
1,475 |
1,170 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,693 |
1,444 |
1,288 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,735 |
1,525 |
1,251 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,689 |
1,483 |
1,237 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
49 |
23 |
27 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
20 |
27 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
22 |
23 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,602 |
6,708 |
6,360 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,363 |
6,591 |
7,252 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,594 |
6,263 |
6,552 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,704 |
6,227 |
6,703 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,308 |
6,291 |
6,237 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,738 |
955 |
786 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,671 |
950 |
721 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,684 |
957 |
730 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,724 |
948 |
779 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,682 |
945 |
739 |
33.2 |
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 |
2 |
1 |
6.4 |
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,384 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,151 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,318 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,426 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,829 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,483 |
0 |
0 |
0 |
8 |
0 |
1,995 |
78 |
bash |
| 9 |
no-host |
bin-true |
49,414 |
0 |
0 |
0 |
8 |
0 |
2,997 |
58 |
dash |
| 17 |
no-host |
bin-true |
132,322 |
0 |
0 |
0 |
16 |
0 |
1,996 |
91 |
osh-native |
| 25 |
no-host |
bin-true |
135,047 |
0 |
0 |
0 |
16 |
0 |
1,995 |
79 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,034 |
0 |
0 |
0 |
8 |
0 |
2,001 |
87 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,529 |
0 |
0 |
0 |
25,272 |
0 |
14,086 |
1,044 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,945 |
0 |
0 |
0 |
25,272 |
0 |
14,123 |
1,018 |
dash |
| 18 |
no-host |
configure.cpython |
1,600,017 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
851 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,594,110 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
931 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,511,336 |
0 |
0 |
0 |
25,272 |
0 |
11,300 |
834 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,743 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
281,378 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
198 |
dash |
| 20 |
no-host |
configure.ocaml |
306,602 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
215 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,037 |
0 |
0 |
0 |
4,440 |
0 |
1,993 |
192 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,085 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,226 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,561 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,639 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,125 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,343 |
2 |
0 |
0 |
35,936 |
0 |
18,970 |
1,034 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,638 |
0 |
0 |
0 |
35,936 |
0 |
17,120 |
1,348 |
dash |
| 19 |
no-host |
configure.util-linux |
1,490,911 |
1 |
0 |
0 |
35,952 |
0 |
16,097 |
923 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,205 |
3 |
0 |
8 |
35,944 |
0 |
16,198 |
919 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,054 |
1 |
0 |
0 |
35,936 |
0 |
16,192 |
921 |
osh-static |
| 6 |
no-host |
configure.yash |
173,391 |
0 |
0 |
0 |
3,616 |
0 |
878 |
109 |
bash |
| 14 |
no-host |
configure.yash |
159,497 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
112 |
dash |
| 22 |
no-host |
configure.yash |
177,046 |
0 |
0 |
0 |
3,624 |
0 |
858 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
176,875 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,737 |
0 |
0 |
0 |
3,616 |
0 |
858 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
185 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host