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 |
19 |
1.31 |
1.19 |
| bin-true |
no-host |
625 |
447 |
807 |
807 |
659 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,914 |
13,826 |
13,406 |
13,479 |
12,877 |
0.96 |
0.93 |
| configure.ocaml |
no-host |
3,680 |
3,585 |
3,671 |
3,682 |
3,646 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,602 |
13,291 |
12,446 |
12,474 |
12,129 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,714 |
1,639 |
1,677 |
1,676 |
1,646 |
0.98 |
0.96 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.43 |
1.04 |
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,371 |
1,188 |
3,305 |
3,420 |
2,833 |
1.39 |
1.19 |
| bin-true |
no-host |
100,433 |
49,372 |
132,303 |
133,007 |
112,004 |
1.32 |
1.12 |
| configure.cpython |
no-host |
1,627,106 |
1,635,837 |
1,591,239 |
1,612,080 |
1,518,986 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,342 |
280,886 |
305,973 |
307,599 |
300,254 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,226 |
4,217 |
5,586 |
5,632 |
5,125 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,530,600 |
1,696,889 |
1,508,963 |
1,518,726 |
1,480,059 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,478 |
159,522 |
177,075 |
177,364 |
172,797 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
87 |
393 |
399 |
182 |
2.62 |
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 |
807 |
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,406 |
1 |
67 |
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,446 |
3 |
64 |
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,671 |
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 |
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,677 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
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 |
807 |
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,479 |
1 |
67 |
14.9 |
34.5 |
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,474 |
3 |
64 |
21.6 |
39.7 |
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,682 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
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,676 |
1 |
2 |
2.7 |
33.3 |
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 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
625 |
317 |
346 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
447 |
271 |
183 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
807 |
299 |
527 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
807 |
310 |
514 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
659 |
321 |
355 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,914 |
7,635 |
6,675 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,826 |
7,605 |
6,633 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,406 |
7,138 |
6,545 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,479 |
7,153 |
6,622 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,877 |
7,128 |
5,989 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,680 |
1,498 |
1,224 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,585 |
1,486 |
1,124 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,671 |
1,475 |
1,236 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,682 |
1,494 |
1,230 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,646 |
1,462 |
1,215 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
19 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
22 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
28 |
16 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,602 |
6,622 |
6,462 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,291 |
6,480 |
7,315 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,446 |
6,195 |
6,476 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,474 |
6,222 |
6,475 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,129 |
6,196 |
6,153 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,714 |
908 |
814 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,639 |
930 |
710 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,677 |
950 |
730 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,676 |
953 |
726 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,646 |
897 |
753 |
33.4 |
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 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,371 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,188 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,305 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,420 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,433 |
0 |
0 |
0 |
8 |
0 |
1,999 |
77 |
bash |
| 9 |
no-host |
bin-true |
49,372 |
0 |
0 |
0 |
8 |
0 |
2,992 |
53 |
dash |
| 17 |
no-host |
bin-true |
132,303 |
0 |
0 |
0 |
16 |
0 |
1,998 |
74 |
osh-native |
| 25 |
no-host |
bin-true |
133,007 |
0 |
0 |
0 |
16 |
0 |
1,995 |
90 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,004 |
0 |
0 |
0 |
8 |
0 |
1,999 |
53 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,106 |
0 |
0 |
0 |
25,272 |
0 |
14,072 |
1,027 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,837 |
0 |
0 |
0 |
25,272 |
0 |
14,117 |
1,010 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,239 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
841 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,612,080 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
818 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,986 |
1 |
0 |
0 |
25,272 |
0 |
11,300 |
825 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,342 |
0 |
0 |
0 |
4,432 |
0 |
2,024 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
280,886 |
0 |
0 |
0 |
4,432 |
0 |
2,093 |
211 |
dash |
| 20 |
no-host |
configure.ocaml |
305,973 |
0 |
0 |
0 |
4,440 |
0 |
1,993 |
211 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,599 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
199 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,254 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
209 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,226 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,586 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,632 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,125 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,530,600 |
1 |
0 |
0 |
35,936 |
0 |
18,951 |
1,078 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,889 |
1 |
0 |
0 |
35,936 |
0 |
17,107 |
1,239 |
dash |
| 19 |
no-host |
configure.util-linux |
1,508,963 |
2 |
0 |
0 |
35,952 |
0 |
16,156 |
1,002 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,726 |
1 |
0 |
0 |
35,944 |
0 |
16,188 |
965 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,059 |
1 |
0 |
0 |
35,936 |
0 |
16,196 |
985 |
osh-static |
| 6 |
no-host |
configure.yash |
173,478 |
0 |
0 |
0 |
3,616 |
0 |
882 |
193 |
bash |
| 14 |
no-host |
configure.yash |
159,522 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
105 |
dash |
| 22 |
no-host |
configure.yash |
177,075 |
0 |
0 |
0 |
3,632 |
0 |
857 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
177,364 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,797 |
0 |
0 |
0 |
3,616 |
0 |
855 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
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 |
0 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host