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.31 |
1.16 |
| bin-true |
no-host |
625 |
445 |
811 |
804 |
662 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,755 |
13,817 |
13,438 |
13,455 |
13,167 |
0.98 |
0.96 |
| configure.ocaml |
no-host |
3,638 |
3,597 |
3,688 |
3,788 |
3,650 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
47 |
48 |
43 |
1.00 |
0.93 |
| configure.util-linux |
no-host |
12,466 |
13,270 |
12,352 |
12,860 |
12,229 |
0.99 |
0.98 |
| configure.yash |
no-host |
1,695 |
1,628 |
1,680 |
1,710 |
1,672 |
0.99 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.45 |
1.07 |
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,353 |
1,176 |
3,309 |
3,372 |
2,847 |
1.41 |
1.21 |
| bin-true |
no-host |
103,464 |
49,437 |
132,975 |
131,349 |
112,661 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,633,958 |
1,638,109 |
1,595,697 |
1,599,554 |
1,524,271 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,023 |
280,828 |
306,431 |
307,707 |
300,041 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,221 |
4,214 |
5,607 |
5,696 |
5,131 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,539,832 |
1,699,499 |
1,490,568 |
1,519,258 |
1,452,288 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,570 |
159,511 |
176,752 |
176,719 |
172,975 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
88 |
391 |
398 |
181 |
2.57 |
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.6 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
811 |
1 |
2 |
3.5 |
8.8 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,438 |
2 |
67 |
14.8 |
34.5 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,352 |
3 |
64 |
21.6 |
39.7 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,688 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,680 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
9.2 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,455 |
1 |
67 |
14.8 |
34.5 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,860 |
3 |
67 |
21.6 |
39.5 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,788 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,710 |
1 |
2 |
2.7 |
33.1 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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 |
5 |
11 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
625 |
310 |
358 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
445 |
289 |
162 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
811 |
310 |
517 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
314 |
507 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
662 |
317 |
362 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,755 |
7,484 |
6,667 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,817 |
7,612 |
6,616 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,438 |
7,070 |
6,648 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,455 |
7,096 |
6,651 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,167 |
7,154 |
6,262 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,638 |
1,452 |
1,227 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,597 |
1,450 |
1,171 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,688 |
1,462 |
1,267 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,788 |
1,538 |
1,294 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,650 |
1,512 |
1,170 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
30 |
19 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
19 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,466 |
6,469 |
6,463 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,270 |
6,490 |
7,284 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,352 |
6,079 |
6,496 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,860 |
6,246 |
6,847 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,229 |
6,319 |
6,127 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,695 |
950 |
754 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,628 |
925 |
706 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,680 |
947 |
736 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,710 |
925 |
787 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,672 |
972 |
703 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
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 |
0 |
3 |
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,353 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,309 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,372 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,847 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,464 |
0 |
0 |
0 |
8 |
0 |
1,998 |
50 |
bash |
| 9 |
no-host |
bin-true |
49,437 |
0 |
0 |
0 |
8 |
0 |
2,995 |
43 |
dash |
| 17 |
no-host |
bin-true |
132,975 |
0 |
0 |
0 |
16 |
0 |
1,999 |
87 |
osh-native |
| 25 |
no-host |
bin-true |
131,349 |
0 |
0 |
0 |
16 |
0 |
1,996 |
66 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,661 |
0 |
0 |
0 |
8 |
0 |
1,998 |
59 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,633,958 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,066 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,109 |
0 |
0 |
0 |
25,272 |
0 |
14,127 |
983 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,697 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
880 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,554 |
0 |
0 |
0 |
25,280 |
0 |
11,314 |
859 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,271 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
792 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,023 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
198 |
bash |
| 12 |
no-host |
configure.ocaml |
280,828 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
306,431 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
216 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,707 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
186 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,041 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
50 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,607 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,696 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,131 |
0 |
0 |
0 |
88 |
0 |
44 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,832 |
1 |
0 |
232 |
35,944 |
0 |
18,954 |
1,053 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,499 |
0 |
0 |
0 |
35,936 |
0 |
17,109 |
1,194 |
dash |
| 19 |
no-host |
configure.util-linux |
1,490,568 |
2 |
0 |
0 |
35,952 |
0 |
16,223 |
902 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,258 |
0 |
0 |
0 |
35,952 |
0 |
16,121 |
894 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,288 |
5 |
0 |
0 |
35,944 |
0 |
16,119 |
948 |
osh-static |
| 6 |
no-host |
configure.yash |
173,570 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,511 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
89 |
dash |
| 22 |
no-host |
configure.yash |
176,752 |
0 |
0 |
0 |
3,624 |
0 |
857 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
176,719 |
0 |
0 |
0 |
3,624 |
0 |
857 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,975 |
0 |
0 |
0 |
3,616 |
0 |
857 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
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 |
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