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.29 |
1.14 |
| bin-true |
no-host |
614 |
438 |
805 |
813 |
646 |
1.31 |
1.05 |
| configure.cpython |
no-host |
13,619 |
13,668 |
13,309 |
13,418 |
12,789 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,624 |
3,567 |
3,671 |
3,668 |
3,628 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
43 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,385 |
13,186 |
12,326 |
12,401 |
11,987 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,674 |
1,616 |
1,677 |
1,674 |
1,649 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.36 |
0.98 |
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,380 |
1,169 |
3,343 |
3,428 |
2,802 |
1.40 |
1.18 |
| bin-true |
no-host |
102,430 |
49,437 |
136,586 |
138,624 |
110,340 |
1.33 |
1.08 |
| configure.cpython |
no-host |
1,621,343 |
1,637,222 |
1,584,597 |
1,614,873 |
1,520,989 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,211 |
280,706 |
306,794 |
307,482 |
299,904 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,244 |
4,179 |
5,641 |
5,702 |
5,125 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,539,836 |
1,704,189 |
1,501,223 |
1,508,214 |
1,450,004 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,489 |
159,519 |
177,262 |
177,485 |
172,757 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
391 |
400 |
181 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,309 |
1 |
65 |
14.8 |
34.5 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,326 |
3 |
63 |
21.6 |
39.6 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,671 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.4 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,677 |
1 |
2 |
2.7 |
33.1 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.2 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
3.5 |
9.0 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,418 |
1 |
65 |
14.9 |
34.5 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,401 |
3 |
63 |
21.6 |
39.7 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,668 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,674 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,996 |
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.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
4 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
614 |
320 |
331 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
271 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
805 |
327 |
495 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
813 |
316 |
513 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
646 |
303 |
361 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,619 |
7,541 |
6,464 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,668 |
7,506 |
6,561 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,309 |
7,081 |
6,493 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,418 |
7,093 |
6,599 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,789 |
7,101 |
5,919 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,624 |
1,464 |
1,200 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,567 |
1,456 |
1,135 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,671 |
1,464 |
1,246 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,668 |
1,452 |
1,258 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,628 |
1,494 |
1,166 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
26 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
26 |
15 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,385 |
6,534 |
6,313 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,186 |
6,443 |
7,230 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,326 |
6,137 |
6,408 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,401 |
6,180 |
6,436 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,987 |
6,113 |
6,078 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,674 |
936 |
746 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,616 |
932 |
686 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,677 |
938 |
742 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,674 |
945 |
731 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,649 |
929 |
723 |
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.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.2 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,380 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,169 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,343 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,428 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,802 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,430 |
0 |
0 |
0 |
8 |
0 |
2,000 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,437 |
0 |
0 |
0 |
8 |
0 |
2,996 |
57 |
dash |
| 17 |
no-host |
bin-true |
136,586 |
0 |
0 |
0 |
16 |
0 |
2,000 |
62 |
osh-native |
| 25 |
no-host |
bin-true |
138,624 |
0 |
0 |
0 |
16 |
0 |
2,000 |
68 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,340 |
0 |
0 |
0 |
8 |
0 |
1,998 |
45 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,343 |
0 |
0 |
0 |
25,272 |
0 |
14,089 |
1,005 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,222 |
0 |
0 |
0 |
25,280 |
0 |
14,123 |
1,022 |
dash |
| 18 |
no-host |
configure.cpython |
1,584,597 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
909 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,614,873 |
0 |
0 |
0 |
25,280 |
0 |
11,315 |
855 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,989 |
1 |
0 |
0 |
25,272 |
0 |
11,309 |
886 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,211 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
207 |
bash |
| 12 |
no-host |
configure.ocaml |
280,706 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
306,794 |
0 |
0 |
8 |
4,440 |
0 |
2,001 |
219 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,482 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
191 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,904 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,244 |
0 |
0 |
0 |
80 |
0 |
48 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,179 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,641 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,702 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
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,539,836 |
0 |
0 |
0 |
35,944 |
0 |
18,925 |
1,043 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,189 |
1 |
0 |
0 |
35,936 |
0 |
17,133 |
1,165 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,223 |
0 |
0 |
0 |
35,952 |
0 |
16,200 |
954 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,508,214 |
1 |
0 |
0 |
35,944 |
0 |
16,196 |
876 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,004 |
2 |
0 |
0 |
35,944 |
0 |
16,218 |
906 |
osh-static |
| 6 |
no-host |
configure.yash |
173,489 |
0 |
0 |
0 |
3,616 |
0 |
879 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,519 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
96 |
dash |
| 22 |
no-host |
configure.yash |
177,262 |
0 |
0 |
0 |
3,624 |
0 |
855 |
94 |
osh-native |
| 30 |
no-host |
configure.yash |
177,485 |
0 |
0 |
0 |
3,624 |
0 |
858 |
96 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,757 |
0 |
0 |
0 |
3,616 |
0 |
855 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
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