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.27 |
1.14 |
| bin-true |
no-host |
648 |
444 |
812 |
812 |
657 |
1.25 |
1.01 |
| configure.cpython |
no-host |
14,162 |
14,334 |
13,693 |
13,855 |
13,482 |
0.97 |
0.95 |
| configure.ocaml |
no-host |
3,723 |
3,675 |
3,775 |
3,784 |
3,758 |
1.01 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
48 |
47 |
43 |
1.05 |
0.94 |
| configure.util-linux |
no-host |
12,895 |
13,701 |
12,674 |
12,992 |
12,675 |
0.98 |
0.98 |
| configure.yash |
no-host |
1,725 |
1,709 |
1,728 |
1,731 |
1,734 |
1.00 |
1.01 |
| 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,386 |
1,168 |
3,286 |
3,419 |
2,826 |
1.38 |
1.18 |
| bin-true |
no-host |
101,476 |
49,361 |
134,340 |
134,033 |
110,353 |
1.32 |
1.09 |
| configure.cpython |
no-host |
1,625,315 |
1,640,385 |
1,592,068 |
1,608,344 |
1,514,508 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,005 |
280,771 |
306,247 |
307,768 |
299,967 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,228 |
4,243 |
5,627 |
5,674 |
5,123 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,533,104 |
1,696,167 |
1,494,355 |
1,520,023 |
1,470,575 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,350 |
159,593 |
176,604 |
177,222 |
172,732 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
86 |
395 |
398 |
183 |
2.60 |
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 |
812 |
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,693 |
1 |
67 |
14.8 |
34.3 |
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,674 |
3 |
66 |
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,775 |
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 |
48 |
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,728 |
1 |
2 |
2.7 |
33.4 |
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 |
812 |
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,855 |
1 |
68 |
14.9 |
34.5 |
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,992 |
3 |
67 |
21.6 |
39.6 |
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,784 |
1 |
2 |
2.8 |
28.6 |
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.4 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,731 |
1 |
2 |
2.7 |
33.4 |
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 |
8 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
648 |
328 |
362 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
444 |
282 |
167 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
812 |
300 |
529 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
812 |
307 |
522 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
313 |
361 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,162 |
7,723 |
6,822 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,334 |
7,798 |
6,955 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,693 |
7,307 |
6,659 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,855 |
7,323 |
6,825 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,482 |
7,411 |
6,313 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,723 |
1,508 |
1,257 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,675 |
1,505 |
1,195 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,775 |
1,535 |
1,279 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,784 |
1,522 |
1,304 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,758 |
1,527 |
1,261 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
22 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
24 |
25 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
17 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,895 |
6,622 |
6,742 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,701 |
6,671 |
7,536 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,674 |
6,304 |
6,598 |
39.4 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,992 |
6,408 |
6,806 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,675 |
6,455 |
6,446 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,725 |
985 |
746 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,709 |
954 |
755 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,728 |
977 |
752 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,731 |
953 |
780 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,734 |
989 |
746 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
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.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,386 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,168 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,286 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,419 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,826 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,476 |
0 |
0 |
0 |
8 |
0 |
1,998 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,361 |
0 |
0 |
0 |
8 |
0 |
2,998 |
47 |
dash |
| 17 |
no-host |
bin-true |
134,340 |
0 |
0 |
0 |
16 |
0 |
2,000 |
79 |
osh-native |
| 25 |
no-host |
bin-true |
134,033 |
0 |
0 |
0 |
16 |
0 |
2,000 |
67 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,353 |
0 |
0 |
0 |
8 |
0 |
1,999 |
88 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,315 |
0 |
0 |
0 |
25,272 |
0 |
14,066 |
1,005 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,385 |
0 |
0 |
0 |
25,272 |
0 |
14,125 |
994 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,068 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
878 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,344 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
811 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,508 |
0 |
0 |
0 |
25,272 |
0 |
11,301 |
842 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,005 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
198 |
bash |
| 12 |
no-host |
configure.ocaml |
280,771 |
0 |
0 |
0 |
4,432 |
0 |
2,088 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
306,247 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
228 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,768 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
197 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,967 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,228 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,243 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,627 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,674 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,123 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,533,104 |
0 |
0 |
0 |
35,936 |
0 |
19,001 |
1,051 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,167 |
0 |
0 |
0 |
35,936 |
0 |
17,105 |
1,105 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,355 |
1 |
0 |
0 |
35,960 |
0 |
16,156 |
934 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,023 |
2 |
0 |
0 |
35,952 |
0 |
16,212 |
983 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,575 |
0 |
0 |
0 |
35,936 |
0 |
16,189 |
929 |
osh-static |
| 6 |
no-host |
configure.yash |
173,350 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,593 |
0 |
0 |
0 |
3,624 |
0 |
1,004 |
97 |
dash |
| 22 |
no-host |
configure.yash |
176,604 |
0 |
0 |
0 |
3,624 |
0 |
860 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,222 |
0 |
0 |
0 |
3,632 |
0 |
857 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,732 |
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 |
395 |
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