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 |
10 |
23 |
22 |
18 |
1.46 |
1.15 |
| bin-true |
no-host |
621 |
446 |
878 |
864 |
675 |
1.41 |
1.09 |
| configure.cpython |
no-host |
14,097 |
14,024 |
15,585 |
14,918 |
13,647 |
1.11 |
0.97 |
| configure.ocaml |
no-host |
3,685 |
3,953 |
4,081 |
3,788 |
3,707 |
1.11 |
1.01 |
| configure.tcc |
no-host |
47 |
52 |
55 |
47 |
43 |
1.17 |
0.92 |
| configure.util-linux |
no-host |
12,592 |
13,666 |
14,271 |
13,457 |
12,336 |
1.13 |
0.98 |
| configure.yash |
no-host |
1,721 |
1,868 |
1,873 |
1,693 |
1,697 |
1.09 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
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,402 |
1,187 |
3,330 |
3,427 |
2,829 |
1.39 |
1.18 |
| bin-true |
no-host |
100,459 |
49,396 |
135,321 |
132,122 |
111,009 |
1.35 |
1.11 |
| configure.cpython |
no-host |
1,623,928 |
1,637,997 |
1,594,171 |
1,600,522 |
1,513,346 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,085 |
280,842 |
305,974 |
307,635 |
300,201 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,202 |
4,201 |
5,613 |
5,681 |
5,117 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,533,670 |
1,694,666 |
1,501,196 |
1,512,222 |
1,469,470 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,250 |
159,585 |
176,892 |
177,484 |
172,772 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
87 |
392 |
401 |
184 |
2.55 |
1.19 |
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.7 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
878 |
1 |
3 |
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 |
15,585 |
3 |
100 |
14.8 |
34.5 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,271 |
5 |
100 |
21.6 |
39.7 |
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 |
4,081 |
1 |
3 |
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 |
55 |
0 |
0 |
1.4 |
26.0 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,873 |
1 |
3 |
2.7 |
33.3 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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 |
864 |
1 |
3 |
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 |
14,918 |
2 |
92 |
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 |
13,457 |
4 |
80 |
21.6 |
39.7 |
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,788 |
1 |
2 |
2.8 |
28.7 |
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.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,693 |
1 |
2 |
2.7 |
33.4 |
143,496 |
11,512 |
6,629 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
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 |
10 |
5 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
23 |
11 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
306 |
354 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
446 |
282 |
170 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
878 |
306 |
591 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
864 |
312 |
571 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
675 |
302 |
391 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,097 |
7,666 |
6,820 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,024 |
7,761 |
6,670 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
15,585 |
8,290 |
7,615 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,918 |
7,991 |
7,246 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,647 |
7,500 |
6,190 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,685 |
1,524 |
1,200 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,953 |
1,625 |
1,352 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,081 |
1,716 |
1,407 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,788 |
1,481 |
1,321 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,707 |
1,498 |
1,241 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
52 |
28 |
24 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
55 |
29 |
27 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
21 |
27 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,592 |
6,654 |
6,402 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,666 |
6,707 |
7,464 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
14,271 |
7,072 |
7,445 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,457 |
6,705 |
6,988 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,336 |
6,273 |
6,284 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,721 |
1,006 |
724 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,868 |
1,054 |
814 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,873 |
1,056 |
820 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,693 |
945 |
751 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,697 |
981 |
714 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,402 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,187 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,330 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,427 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,829 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,459 |
0 |
0 |
0 |
8 |
0 |
1,998 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,396 |
0 |
0 |
0 |
8 |
0 |
2,996 |
56 |
dash |
| 17 |
no-host |
bin-true |
135,321 |
0 |
0 |
0 |
16 |
0 |
1,999 |
92 |
osh-native |
| 25 |
no-host |
bin-true |
132,122 |
0 |
0 |
0 |
16 |
0 |
1,999 |
87 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,009 |
0 |
0 |
0 |
8 |
0 |
1,999 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,928 |
0 |
0 |
0 |
25,272 |
0 |
14,091 |
1,135 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,997 |
0 |
0 |
0 |
25,272 |
0 |
14,137 |
955 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,171 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
843 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,522 |
0 |
0 |
0 |
25,280 |
0 |
11,386 |
881 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,513,346 |
0 |
0 |
0 |
25,272 |
0 |
11,341 |
834 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,085 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,842 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
305,974 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
220 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,635 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
186 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,201 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,202 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,201 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,613 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,681 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,533,670 |
0 |
0 |
0 |
35,936 |
0 |
18,964 |
1,008 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,666 |
3 |
0 |
0 |
35,936 |
0 |
17,089 |
1,172 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,196 |
2 |
0 |
0 |
35,952 |
0 |
16,203 |
929 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,222 |
0 |
0 |
0 |
35,952 |
0 |
16,168 |
1,061 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,469,470 |
1 |
0 |
0 |
35,944 |
0 |
16,124 |
860 |
osh-static |
| 6 |
no-host |
configure.yash |
173,250 |
0 |
0 |
0 |
3,616 |
0 |
878 |
116 |
bash |
| 14 |
no-host |
configure.yash |
159,585 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,892 |
0 |
0 |
0 |
3,624 |
0 |
855 |
112 |
osh-native |
| 30 |
no-host |
configure.yash |
177,484 |
0 |
0 |
0 |
3,624 |
0 |
856 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,772 |
0 |
0 |
0 |
3,616 |
0 |
859 |
107 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host