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 |
15 |
9 |
21 |
21 |
18 |
1.33 |
1.19 |
| bin-true |
no-host |
612 |
437 |
800 |
797 |
647 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,598 |
13,723 |
13,240 |
13,369 |
12,785 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,684 |
3,571 |
3,662 |
3,673 |
3,685 |
0.99 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
47 |
46 |
43 |
1.03 |
0.95 |
| configure.util-linux |
no-host |
12,341 |
13,094 |
12,274 |
12,363 |
12,145 |
0.99 |
0.98 |
| configure.yash |
no-host |
1,683 |
1,621 |
1,681 |
1,668 |
1,683 |
1.00 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.27 |
0.97 |
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,400 |
1,190 |
3,323 |
3,414 |
2,814 |
1.38 |
1.17 |
| bin-true |
no-host |
100,455 |
49,395 |
133,346 |
131,011 |
109,998 |
1.33 |
1.09 |
| configure.cpython |
no-host |
1,629,509 |
1,643,333 |
1,584,115 |
1,595,474 |
1,523,710 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
298,456 |
280,791 |
304,995 |
306,499 |
300,952 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,229 |
4,201 |
5,580 |
5,677 |
5,124 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,536,995 |
1,701,181 |
1,495,822 |
1,519,730 |
1,458,100 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,391 |
159,610 |
176,155 |
177,377 |
173,074 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
390 |
398 |
181 |
2.55 |
1.18 |
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 |
800 |
1 |
2 |
3.5 |
8.8 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,240 |
1 |
63 |
14.8 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,274 |
3 |
63 |
21.6 |
39.7 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,662 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,681 |
1 |
2 |
2.7 |
33.3 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
3.5 |
9.2 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,369 |
1 |
64 |
14.8 |
34.4 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,363 |
3 |
62 |
21.6 |
39.7 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,673 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,668 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.1 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
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 |
15 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
306 |
344 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
437 |
270 |
173 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
800 |
306 |
508 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
797 |
310 |
502 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
647 |
312 |
350 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,598 |
7,516 |
6,447 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,723 |
7,525 |
6,594 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,240 |
7,045 |
6,466 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,369 |
7,131 |
6,519 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,785 |
7,067 |
5,954 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,684 |
1,518 |
1,205 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,571 |
1,455 |
1,140 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,662 |
1,409 |
1,291 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,673 |
1,465 |
1,250 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,685 |
1,482 |
1,234 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
21 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
18 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
27 |
20 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
27 |
17 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,341 |
6,549 |
6,252 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,094 |
6,473 |
7,104 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,274 |
5,996 |
6,491 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,363 |
6,118 |
6,469 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,145 |
6,174 |
6,189 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,683 |
936 |
755 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,621 |
934 |
685 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,681 |
957 |
727 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,668 |
987 |
683 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,683 |
959 |
716 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,400 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,190 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,323 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,414 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,814 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,455 |
0 |
0 |
0 |
8 |
0 |
1,996 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,395 |
0 |
0 |
0 |
8 |
0 |
2,996 |
48 |
dash |
| 17 |
no-host |
bin-true |
133,346 |
0 |
0 |
0 |
16 |
0 |
2,001 |
100 |
osh-native |
| 25 |
no-host |
bin-true |
131,011 |
0 |
0 |
0 |
16 |
0 |
2,000 |
99 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
109,998 |
0 |
0 |
0 |
8 |
0 |
2,000 |
91 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,509 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,045 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,333 |
0 |
0 |
0 |
25,272 |
0 |
14,105 |
1,057 |
dash |
| 18 |
no-host |
configure.cpython |
1,584,115 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
921 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,595,474 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
825 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,710 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
858 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,456 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,791 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
304,995 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
226 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,499 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
195 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,952 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
238 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,229 |
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,580 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,677 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,124 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,995 |
0 |
0 |
232 |
35,944 |
0 |
18,936 |
996 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,181 |
0 |
0 |
0 |
35,936 |
0 |
17,072 |
1,233 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,822 |
1 |
0 |
0 |
35,960 |
0 |
16,144 |
925 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,730 |
1 |
0 |
0 |
35,952 |
0 |
16,178 |
912 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,458,100 |
2 |
0 |
0 |
35,944 |
0 |
16,180 |
893 |
osh-static |
| 6 |
no-host |
configure.yash |
173,391 |
0 |
0 |
0 |
3,616 |
0 |
876 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,610 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,155 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,377 |
0 |
0 |
0 |
3,624 |
0 |
859 |
108 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,074 |
0 |
0 |
0 |
3,616 |
0 |
858 |
103 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
390 |
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