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 |
21 |
18 |
1.32 |
1.17 |
| bin-true |
no-host |
623 |
442 |
807 |
813 |
662 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,991 |
13,974 |
13,510 |
13,558 |
13,011 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,657 |
3,629 |
3,701 |
3,699 |
3,680 |
1.01 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
48 |
46 |
43 |
1.05 |
0.95 |
| configure.util-linux |
no-host |
12,500 |
13,310 |
12,589 |
12,597 |
12,190 |
1.01 |
0.98 |
| configure.yash |
no-host |
1,728 |
1,671 |
1,714 |
1,689 |
1,696 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
1.00 |
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,387 |
1,153 |
3,313 |
3,405 |
2,824 |
1.39 |
1.18 |
| bin-true |
no-host |
101,437 |
49,295 |
133,244 |
138,027 |
112,061 |
1.31 |
1.10 |
| configure.cpython |
no-host |
1,621,540 |
1,636,522 |
1,585,160 |
1,597,021 |
1,518,220 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,049 |
280,458 |
306,481 |
306,644 |
300,180 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,232 |
4,195 |
5,561 |
5,646 |
5,125 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,530,317 |
1,697,281 |
1,510,874 |
1,516,173 |
1,479,688 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,333 |
159,542 |
176,516 |
177,461 |
172,837 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
86 |
389 |
398 |
181 |
2.61 |
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.4 |
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.7 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,510 |
1 |
65 |
14.8 |
34.4 |
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,589 |
3 |
64 |
21.6 |
39.6 |
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,701 |
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 |
48 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,714 |
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 |
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 |
813 |
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,558 |
1 |
65 |
14.9 |
34.6 |
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,597 |
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,699 |
1 |
2 |
2.8 |
28.6 |
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.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,689 |
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 |
21 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
329 |
332 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
280 |
168 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
807 |
308 |
515 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
813 |
306 |
522 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
662 |
316 |
361 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,991 |
7,734 |
6,642 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,974 |
7,644 |
6,732 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,510 |
7,280 |
6,499 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,558 |
7,163 |
6,661 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,011 |
7,166 |
6,085 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,657 |
1,508 |
1,189 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,629 |
1,499 |
1,154 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,701 |
1,467 |
1,274 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,699 |
1,508 |
1,231 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,680 |
1,477 |
1,233 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
26 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
20 |
26 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,500 |
6,578 |
6,383 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,310 |
6,500 |
7,298 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,589 |
6,232 |
6,579 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,597 |
6,213 |
6,604 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,190 |
6,175 |
6,215 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,728 |
947 |
787 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,671 |
967 |
706 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,714 |
957 |
760 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,689 |
961 |
731 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,696 |
988 |
711 |
33.3 |
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 |
0 |
3 |
6.4 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,153 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,313 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,405 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,824 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,437 |
0 |
0 |
0 |
8 |
0 |
1,999 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,295 |
0 |
0 |
0 |
8 |
0 |
2,995 |
60 |
dash |
| 17 |
no-host |
bin-true |
133,244 |
0 |
0 |
0 |
16 |
0 |
1,999 |
78 |
osh-native |
| 25 |
no-host |
bin-true |
138,027 |
0 |
0 |
0 |
16 |
0 |
2,000 |
98 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,061 |
0 |
0 |
0 |
8 |
0 |
2,001 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,540 |
0 |
0 |
0 |
25,272 |
0 |
14,062 |
1,028 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,522 |
0 |
0 |
0 |
25,272 |
0 |
14,110 |
1,000 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,160 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
813 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,597,021 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
873 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,220 |
0 |
0 |
0 |
25,272 |
0 |
11,310 |
832 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,049 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,458 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
306,481 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
249 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,644 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
209 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,180 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
212 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,232 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,195 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,561 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,646 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,125 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,530,317 |
1 |
0 |
0 |
35,936 |
0 |
18,983 |
1,034 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,281 |
1 |
0 |
0 |
35,936 |
0 |
17,133 |
1,367 |
dash |
| 19 |
no-host |
configure.util-linux |
1,510,874 |
0 |
0 |
0 |
35,952 |
0 |
16,127 |
953 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,173 |
2 |
0 |
0 |
35,944 |
0 |
16,232 |
945 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,688 |
2 |
0 |
0 |
35,936 |
0 |
16,225 |
953 |
osh-static |
| 6 |
no-host |
configure.yash |
173,333 |
0 |
0 |
0 |
3,616 |
0 |
878 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,542 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
114 |
dash |
| 22 |
no-host |
configure.yash |
176,516 |
0 |
0 |
0 |
3,632 |
0 |
856 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
177,461 |
0 |
0 |
0 |
3,624 |
0 |
859 |
108 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,837 |
0 |
0 |
0 |
3,616 |
0 |
857 |
82 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
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 |
389 |
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 |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host