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 |
22 |
23 |
20 |
1.38 |
1.28 |
| bin-true |
no-host |
625 |
448 |
816 |
812 |
678 |
1.30 |
1.08 |
| configure.cpython |
no-host |
14,156 |
14,394 |
13,710 |
13,885 |
13,611 |
0.97 |
0.96 |
| configure.ocaml |
no-host |
3,755 |
3,730 |
3,843 |
3,852 |
3,778 |
1.02 |
1.01 |
| configure.tcc |
no-host |
49 |
42 |
48 |
49 |
44 |
0.99 |
0.91 |
| configure.util-linux |
no-host |
12,879 |
13,628 |
12,823 |
13,065 |
12,832 |
1.00 |
1.00 |
| configure.yash |
no-host |
1,731 |
1,686 |
1,768 |
1,774 |
1,749 |
1.02 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.33 |
1.03 |
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,368 |
1,203 |
3,311 |
3,454 |
2,822 |
1.40 |
1.19 |
| bin-true |
no-host |
101,460 |
49,390 |
134,331 |
131,138 |
111,380 |
1.32 |
1.10 |
| configure.cpython |
no-host |
1,627,930 |
1,645,430 |
1,581,588 |
1,599,838 |
1,514,598 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,881 |
280,867 |
306,923 |
308,276 |
300,033 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,237 |
4,199 |
5,560 |
5,602 |
5,104 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,536,032 |
1,692,754 |
1,501,087 |
1,514,512 |
1,470,765 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,563 |
159,609 |
176,371 |
177,401 |
172,830 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
88 |
393 |
398 |
183 |
2.62 |
1.22 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
816 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,710 |
2 |
72 |
14.8 |
34.4 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,823 |
3 |
70 |
21.6 |
39.5 |
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 |
3,843 |
1 |
2 |
2.8 |
28.8 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,768 |
1 |
2 |
2.7 |
33.4 |
143,538 |
11,666 |
6,632 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
9.4 |
117,263 |
65,801 |
42,008 |
4,981 |
54,612 |
57,670 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
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 |
13,885 |
1 |
72 |
14.9 |
34.7 |
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,065 |
3 |
70 |
21.6 |
39.5 |
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,852 |
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 |
49 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,774 |
1 |
2 |
2.7 |
33.4 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.1 |
117,263 |
65,805 |
42,012 |
4,981 |
54,612 |
57,670 |
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 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
14 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
12 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
625 |
319 |
342 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
448 |
282 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
816 |
310 |
524 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
812 |
315 |
513 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
678 |
338 |
347 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,156 |
7,782 |
6,775 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,394 |
7,894 |
6,900 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,710 |
7,298 |
6,691 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,885 |
7,359 |
6,810 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,611 |
7,449 |
6,406 |
34.3 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,755 |
1,513 |
1,282 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,730 |
1,475 |
1,279 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,843 |
1,562 |
1,319 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,852 |
1,540 |
1,356 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,778 |
1,533 |
1,277 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
26 |
24 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
26 |
19 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,879 |
6,705 |
6,640 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,628 |
6,666 |
7,457 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,823 |
6,307 |
6,754 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,065 |
6,404 |
6,878 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,832 |
6,396 |
6,637 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,731 |
950 |
788 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,686 |
946 |
741 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,768 |
976 |
795 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,774 |
996 |
781 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,749 |
982 |
768 |
33.4 |
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.1 |
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,368 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,203 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,311 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,454 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,822 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,460 |
0 |
0 |
0 |
8 |
0 |
1,997 |
70 |
bash |
| 9 |
no-host |
bin-true |
49,390 |
0 |
0 |
0 |
8 |
0 |
2,996 |
68 |
dash |
| 17 |
no-host |
bin-true |
134,331 |
0 |
0 |
0 |
16 |
0 |
2,000 |
60 |
osh-native |
| 25 |
no-host |
bin-true |
131,138 |
0 |
0 |
0 |
16 |
0 |
1,998 |
86 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,380 |
0 |
0 |
0 |
8 |
0 |
1,998 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,930 |
0 |
0 |
0 |
25,272 |
0 |
14,082 |
1,041 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,430 |
0 |
0 |
0 |
25,272 |
0 |
14,131 |
1,000 |
dash |
| 18 |
no-host |
configure.cpython |
1,581,588 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
818 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,838 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
812 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,598 |
2 |
0 |
0 |
25,272 |
0 |
11,295 |
839 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,881 |
0 |
0 |
0 |
4,432 |
0 |
2,024 |
201 |
bash |
| 12 |
no-host |
configure.ocaml |
280,867 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
251 |
dash |
| 20 |
no-host |
configure.ocaml |
306,923 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
225 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,276 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
172 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,033 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
227 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,237 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,560 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,602 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,104 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,032 |
1 |
0 |
0 |
35,936 |
0 |
18,959 |
1,056 |
bash |
| 11 |
no-host |
configure.util-linux |
1,692,754 |
0 |
0 |
0 |
35,936 |
0 |
17,126 |
1,256 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,087 |
0 |
0 |
0 |
35,960 |
0 |
16,202 |
911 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,512 |
1 |
0 |
0 |
35,952 |
0 |
16,209 |
965 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,765 |
1 |
0 |
0 |
35,944 |
0 |
16,156 |
944 |
osh-static |
| 6 |
no-host |
configure.yash |
173,563 |
0 |
0 |
0 |
3,616 |
0 |
873 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,609 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
96 |
dash |
| 22 |
no-host |
configure.yash |
176,371 |
0 |
0 |
0 |
3,624 |
0 |
857 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
177,401 |
0 |
0 |
0 |
3,632 |
0 |
857 |
98 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,830 |
0 |
0 |
0 |
3,616 |
0 |
857 |
92 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
393 |
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 |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host