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.17 |
| bin-true |
no-host |
619 |
445 |
809 |
821 |
649 |
1.31 |
1.05 |
| configure.cpython |
no-host |
13,728 |
13,945 |
13,375 |
13,456 |
12,896 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,662 |
3,623 |
3,678 |
3,653 |
3,633 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
41 |
46 |
46 |
43 |
1.01 |
0.93 |
| configure.util-linux |
no-host |
12,403 |
13,445 |
12,388 |
12,471 |
12,153 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,688 |
1,629 |
1,686 |
1,672 |
1,657 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.48 |
1.01 |
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,356 |
1,139 |
3,317 |
3,412 |
2,830 |
1.41 |
1.20 |
| bin-true |
no-host |
101,518 |
49,469 |
132,280 |
134,028 |
111,021 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,622,468 |
1,642,271 |
1,577,811 |
1,598,186 |
1,517,610 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,113 |
280,567 |
305,214 |
307,247 |
299,871 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,214 |
4,206 |
5,568 |
5,691 |
5,115 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,533,999 |
1,701,132 |
1,501,895 |
1,513,154 |
1,480,193 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,330 |
159,496 |
176,422 |
177,382 |
172,857 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
88 |
397 |
398 |
182 |
2.59 |
1.19 |
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 |
809 |
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,375 |
1 |
65 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,388 |
3 |
63 |
21.6 |
39.9 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,678 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,686 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.3 |
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 |
821 |
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,456 |
2 |
65 |
14.9 |
34.4 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,471 |
3 |
62 |
21.6 |
39.9 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,653 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
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,672 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
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 |
9 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
313 |
347 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
282 |
168 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
809 |
317 |
510 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
821 |
321 |
518 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
649 |
326 |
340 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,728 |
7,570 |
6,543 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,945 |
7,686 |
6,662 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,375 |
7,164 |
6,486 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,456 |
7,235 |
6,510 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,896 |
7,104 |
6,034 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,662 |
1,468 |
1,236 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,623 |
1,447 |
1,201 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,678 |
1,476 |
1,241 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,653 |
1,462 |
1,235 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,633 |
1,489 |
1,175 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
22 |
21 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,403 |
6,542 |
6,331 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,445 |
6,610 |
7,330 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,388 |
6,216 |
6,395 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,471 |
6,125 |
6,575 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,153 |
6,117 |
6,257 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,688 |
944 |
752 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,629 |
940 |
692 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,686 |
950 |
737 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,672 |
914 |
761 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,657 |
960 |
700 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
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,356 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,139 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,317 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,412 |
0 |
0 |
0 |
16 |
0 |
40 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,830 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,518 |
0 |
0 |
0 |
8 |
0 |
1,998 |
51 |
bash |
| 9 |
no-host |
bin-true |
49,469 |
0 |
0 |
0 |
8 |
0 |
2,992 |
64 |
dash |
| 17 |
no-host |
bin-true |
132,280 |
0 |
0 |
0 |
16 |
0 |
1,998 |
78 |
osh-native |
| 25 |
no-host |
bin-true |
134,028 |
0 |
0 |
0 |
16 |
0 |
1,995 |
88 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,021 |
0 |
0 |
0 |
8 |
0 |
2,001 |
57 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,468 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,003 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,271 |
0 |
0 |
0 |
25,272 |
0 |
14,103 |
1,030 |
dash |
| 18 |
no-host |
configure.cpython |
1,577,811 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
841 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,186 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
891 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,610 |
0 |
0 |
0 |
25,272 |
0 |
11,306 |
851 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,113 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
182 |
bash |
| 12 |
no-host |
configure.ocaml |
280,567 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
305,214 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
227 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,247 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
182 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,871 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
232 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,214 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,206 |
0 |
0 |
0 |
88 |
0 |
52 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
5,568 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,691 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,115 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,533,999 |
0 |
0 |
0 |
35,936 |
0 |
18,976 |
1,057 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,132 |
1 |
0 |
0 |
35,936 |
0 |
17,133 |
1,425 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,895 |
1 |
0 |
0 |
35,952 |
0 |
16,177 |
981 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,154 |
1 |
0 |
0 |
35,944 |
0 |
16,101 |
1,037 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,193 |
2 |
0 |
0 |
35,936 |
0 |
16,180 |
923 |
osh-static |
| 6 |
no-host |
configure.yash |
173,330 |
0 |
0 |
0 |
3,616 |
0 |
876 |
90 |
bash |
| 14 |
no-host |
configure.yash |
159,496 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,422 |
0 |
0 |
0 |
3,624 |
0 |
857 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,382 |
0 |
0 |
0 |
3,624 |
0 |
859 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,857 |
0 |
0 |
0 |
3,616 |
0 |
858 |
111 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
397 |
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 |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host