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 |
21 |
18 |
1.30 |
1.17 |
| bin-true |
no-host |
617 |
438 |
795 |
798 |
642 |
1.29 |
1.04 |
| configure.cpython |
no-host |
13,545 |
13,596 |
13,160 |
13,215 |
12,687 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,654 |
3,549 |
3,636 |
3,657 |
3,612 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
40 |
45 |
46 |
42 |
0.99 |
0.93 |
| configure.util-linux |
no-host |
12,328 |
12,997 |
12,213 |
12,343 |
11,984 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,696 |
1,610 |
1,659 |
1,666 |
1,640 |
0.98 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.49 |
1.06 |
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,379 |
1,161 |
3,313 |
3,366 |
2,817 |
1.39 |
1.18 |
| bin-true |
no-host |
103,493 |
49,394 |
132,274 |
134,010 |
110,385 |
1.28 |
1.07 |
| configure.cpython |
no-host |
1,626,961 |
1,637,102 |
1,590,028 |
1,602,912 |
1,512,146 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,140 |
280,524 |
306,824 |
307,017 |
300,085 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,240 |
4,192 |
5,592 |
5,637 |
5,114 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,529,843 |
1,692,827 |
1,492,871 |
1,521,747 |
1,470,674 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,281 |
159,555 |
176,597 |
176,981 |
172,812 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
86 |
393 |
398 |
183 |
2.59 |
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 |
795 |
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,160 |
1 |
64 |
14.8 |
34.6 |
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,213 |
3 |
63 |
21.6 |
39.4 |
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,636 |
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 |
45 |
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,659 |
1 |
2 |
2.7 |
33.3 |
143,538 |
11,666 |
6,632 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,263 |
65,801 |
42,008 |
4,981 |
54,612 |
57,670 |
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 |
798 |
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,215 |
1 |
65 |
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,343 |
3 |
64 |
21.6 |
39.5 |
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,657 |
1 |
2 |
2.8 |
28.5 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
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,666 |
1 |
2 |
2.7 |
33.1 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,263 |
65,805 |
42,012 |
4,981 |
54,612 |
57,670 |
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 |
11 |
5 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
617 |
296 |
358 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
269 |
176 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
795 |
297 |
512 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
798 |
309 |
505 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
642 |
314 |
344 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,545 |
7,459 |
6,439 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,596 |
7,539 |
6,439 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,160 |
7,038 |
6,393 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,215 |
6,963 |
6,533 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,687 |
6,994 |
5,927 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,654 |
1,496 |
1,198 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,549 |
1,436 |
1,136 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,636 |
1,436 |
1,240 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,657 |
1,471 |
1,225 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,612 |
1,405 |
1,238 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
27 |
19 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
17 |
23 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
45 |
21 |
25 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
19 |
27 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
24 |
19 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,328 |
6,446 |
6,339 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
12,997 |
6,425 |
7,057 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,213 |
6,131 |
6,304 |
39.4 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,343 |
6,134 |
6,432 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,984 |
6,113 |
6,090 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,696 |
963 |
741 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,610 |
927 |
684 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,659 |
904 |
757 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,666 |
931 |
738 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,640 |
948 |
695 |
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 |
0 |
3 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,379 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,313 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,366 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,817 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
103,493 |
0 |
0 |
0 |
8 |
0 |
1,998 |
47 |
bash |
| 9 |
no-host |
bin-true |
49,394 |
0 |
0 |
0 |
8 |
0 |
2,997 |
35 |
dash |
| 17 |
no-host |
bin-true |
132,274 |
0 |
0 |
0 |
16 |
0 |
2,000 |
96 |
osh-native |
| 25 |
no-host |
bin-true |
134,010 |
0 |
0 |
0 |
16 |
0 |
1,998 |
69 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,385 |
0 |
0 |
0 |
8 |
0 |
2,000 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,961 |
0 |
0 |
0 |
25,272 |
0 |
14,075 |
1,082 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,102 |
0 |
0 |
0 |
25,272 |
0 |
14,108 |
1,023 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,028 |
0 |
0 |
0 |
25,280 |
0 |
11,272 |
825 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,912 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
826 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,512,146 |
0 |
0 |
0 |
25,272 |
0 |
11,306 |
804 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,140 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
280,524 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
306,824 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
193 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,017 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
218 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,085 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
221 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,240 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,192 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,592 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,637 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,114 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,529,843 |
1 |
0 |
0 |
35,936 |
0 |
18,973 |
1,054 |
bash |
| 11 |
no-host |
configure.util-linux |
1,692,827 |
2 |
0 |
0 |
35,936 |
0 |
17,087 |
1,159 |
dash |
| 19 |
no-host |
configure.util-linux |
1,492,871 |
1 |
0 |
0 |
35,952 |
0 |
16,128 |
893 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,747 |
1 |
0 |
0 |
35,944 |
0 |
16,149 |
899 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,674 |
2 |
0 |
0 |
35,944 |
0 |
16,126 |
891 |
osh-static |
| 6 |
no-host |
configure.yash |
173,281 |
0 |
0 |
0 |
3,616 |
0 |
878 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,555 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
143 |
dash |
| 22 |
no-host |
configure.yash |
176,597 |
0 |
0 |
0 |
3,624 |
0 |
857 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
176,981 |
0 |
0 |
0 |
3,624 |
0 |
854 |
95 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,812 |
0 |
0 |
0 |
3,616 |
0 |
857 |
96 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
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 |
393 |
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 |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host