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 |
14 |
7 |
18 |
19 |
17 |
1.31 |
1.24 |
| bin-true |
no-host |
462 |
319 |
618 |
630 |
499 |
1.34 |
1.08 |
| configure.cpython |
no-host |
12,330 |
12,298 |
12,148 |
12,182 |
11,848 |
0.99 |
0.96 |
| configure.ocaml |
no-host |
3,437 |
3,372 |
3,480 |
3,458 |
3,424 |
1.01 |
1.00 |
| configure.tcc |
no-host |
39 |
36 |
40 |
42 |
39 |
1.02 |
0.98 |
| configure.util-linux |
no-host |
10,965 |
11,560 |
11,098 |
11,174 |
10,918 |
1.01 |
1.00 |
| configure.yash |
no-host |
1,531 |
1,487 |
1,506 |
1,531 |
1,497 |
0.98 |
0.98 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.25 |
1.02 |
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,441 |
1,166 |
3,333 |
3,452 |
2,854 |
1.37 |
1.17 |
| bin-true |
no-host |
103,880 |
49,874 |
130,443 |
135,821 |
112,105 |
1.26 |
1.08 |
| configure.cpython |
no-host |
1,626,508 |
1,645,985 |
1,592,142 |
1,597,833 |
1,527,934 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,976 |
281,355 |
307,279 |
307,699 |
301,009 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,222 |
4,218 |
5,609 |
5,715 |
5,151 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,545,457 |
1,704,581 |
1,496,515 |
1,525,010 |
1,457,223 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,696 |
159,993 |
176,974 |
177,078 |
173,224 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
394 |
397 |
184 |
2.56 |
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 |
2 |
0 |
0 |
0.3 |
6.7 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
618 |
1 |
2 |
3.5 |
8.5 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,148 |
1 |
62 |
14.8 |
34.3 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,098 |
3 |
67 |
21.6 |
39.5 |
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,480 |
1 |
2 |
2.8 |
28.9 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
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,506 |
1 |
2 |
2.7 |
33.5 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.6 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
2 |
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 |
630 |
1 |
2 |
3.5 |
9.3 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,182 |
1 |
63 |
14.8 |
34.8 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,174 |
3 |
66 |
21.6 |
39.9 |
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,458 |
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 |
42 |
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,531 |
1 |
2 |
2.7 |
33.5 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
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 |
14 |
8 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
4 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
7 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
15 |
5 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
17 |
11 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
462 |
292 |
208 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
319 |
227 |
92 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
618 |
318 |
314 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
630 |
309 |
334 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
499 |
314 |
198 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
12,330 |
7,864 |
4,779 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
12,298 |
7,768 |
4,861 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
12,148 |
7,379 |
4,956 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
12,182 |
7,466 |
4,913 |
34.8 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,848 |
7,492 |
4,515 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,437 |
1,521 |
928 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,372 |
1,534 |
836 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,480 |
1,530 |
961 |
28.9 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,458 |
1,526 |
950 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,424 |
1,534 |
895 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
27 |
13 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
36 |
25 |
11 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
28 |
12 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
39 |
26 |
13 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,965 |
6,837 |
4,509 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
11,560 |
6,792 |
5,172 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
11,098 |
6,404 |
4,836 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
11,174 |
6,562 |
4,759 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,918 |
6,485 |
4,561 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,531 |
952 |
576 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,487 |
979 |
497 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,506 |
982 |
517 |
33.5 |
osh-native |
| 30 |
no-host |
configure.yash |
1,531 |
981 |
541 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,497 |
979 |
509 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.4 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
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,441 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,166 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,333 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,452 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,854 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
103,880 |
0 |
0 |
0 |
8 |
0 |
2,000 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,874 |
0 |
0 |
0 |
8 |
0 |
2,998 |
47 |
dash |
| 17 |
no-host |
bin-true |
130,443 |
0 |
0 |
0 |
16 |
0 |
1,998 |
52 |
osh-native |
| 25 |
no-host |
bin-true |
135,821 |
0 |
0 |
0 |
16 |
0 |
1,996 |
99 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,105 |
0 |
0 |
0 |
8 |
0 |
1,999 |
59 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,508 |
0 |
0 |
0 |
25,272 |
0 |
14,034 |
1,047 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,985 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,025 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,142 |
0 |
0 |
0 |
25,280 |
0 |
11,270 |
836 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,597,833 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
761 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,527,934 |
0 |
0 |
0 |
25,272 |
0 |
11,299 |
822 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,976 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
281,355 |
0 |
0 |
0 |
4,432 |
0 |
2,113 |
182 |
dash |
| 20 |
no-host |
configure.ocaml |
307,279 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
187 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,699 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
204 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,009 |
0 |
0 |
0 |
4,432 |
0 |
2,005 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,218 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,609 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,715 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,151 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,545,457 |
0 |
0 |
0 |
35,944 |
0 |
18,781 |
1,028 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,581 |
0 |
0 |
496 |
35,936 |
0 |
16,896 |
1,138 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,515 |
1 |
0 |
0 |
35,960 |
0 |
16,189 |
864 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,525,010 |
2 |
0 |
0 |
35,952 |
0 |
16,193 |
863 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,223 |
3 |
0 |
0 |
35,936 |
0 |
16,264 |
978 |
osh-static |
| 6 |
no-host |
configure.yash |
173,696 |
0 |
0 |
0 |
3,616 |
0 |
876 |
87 |
bash |
| 14 |
no-host |
configure.yash |
159,993 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,974 |
0 |
0 |
0 |
3,624 |
0 |
857 |
91 |
osh-native |
| 30 |
no-host |
configure.yash |
177,078 |
0 |
0 |
0 |
3,624 |
0 |
857 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,224 |
0 |
0 |
0 |
3,616 |
0 |
860 |
87 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
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 |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host