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.27 |
1.14 |
| bin-true |
no-host |
614 |
440 |
796 |
805 |
657 |
1.30 |
1.07 |
| configure.cpython |
no-host |
14,030 |
13,803 |
13,452 |
13,580 |
13,206 |
0.96 |
0.94 |
| configure.ocaml |
no-host |
3,694 |
3,595 |
3,688 |
3,734 |
3,705 |
1.00 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
46 |
47 |
44 |
1.00 |
0.94 |
| configure.util-linux |
no-host |
12,671 |
13,350 |
12,357 |
12,686 |
12,349 |
0.98 |
0.97 |
| configure.yash |
no-host |
1,799 |
1,630 |
1,688 |
1,718 |
1,697 |
0.94 |
0.94 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
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,431 |
1,155 |
3,283 |
3,426 |
2,811 |
1.35 |
1.16 |
| bin-true |
no-host |
100,446 |
49,424 |
131,348 |
134,316 |
109,991 |
1.31 |
1.10 |
| configure.cpython |
no-host |
1,624,087 |
1,637,830 |
1,582,902 |
1,594,035 |
1,524,513 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,210 |
280,524 |
306,115 |
307,042 |
300,798 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,235 |
4,216 |
5,581 |
5,682 |
5,139 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,990 |
1,695,929 |
1,492,104 |
1,513,302 |
1,457,964 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,269 |
159,592 |
177,027 |
176,862 |
173,079 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
387 |
399 |
182 |
2.56 |
1.21 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
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,452 |
1 |
68 |
14.8 |
34.3 |
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,357 |
3 |
66 |
21.6 |
39.6 |
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,688 |
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 |
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,688 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
805 |
1 |
2 |
3.5 |
9.0 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,580 |
1 |
68 |
14.8 |
34.5 |
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,686 |
3 |
68 |
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,734 |
1 |
2 |
2.8 |
28.8 |
149,681 |
12,647 |
6,562 |
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,718 |
1 |
2 |
2.7 |
33.1 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
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 |
16 |
8 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
5 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
614 |
305 |
346 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
440 |
280 |
167 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
796 |
313 |
502 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
805 |
324 |
500 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
301 |
373 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,030 |
7,670 |
6,749 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,803 |
7,651 |
6,556 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,452 |
7,212 |
6,508 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,580 |
7,131 |
6,724 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,206 |
7,361 |
6,088 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,694 |
1,477 |
1,255 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,595 |
1,498 |
1,122 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,688 |
1,482 |
1,245 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,734 |
1,499 |
1,273 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,705 |
1,498 |
1,239 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
28 |
19 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
22 |
22 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,671 |
6,733 |
6,401 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,350 |
6,563 |
7,272 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,357 |
6,164 |
6,412 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,686 |
6,271 |
6,636 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,349 |
6,259 |
6,309 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,799 |
977 |
785 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,630 |
926 |
705 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,688 |
949 |
742 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,718 |
923 |
798 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,697 |
960 |
738 |
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 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,431 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,283 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,426 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,811 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,446 |
0 |
0 |
0 |
8 |
0 |
1,998 |
52 |
bash |
| 9 |
no-host |
bin-true |
49,424 |
0 |
0 |
0 |
8 |
0 |
2,991 |
51 |
dash |
| 17 |
no-host |
bin-true |
131,348 |
0 |
0 |
0 |
16 |
0 |
1,997 |
69 |
osh-native |
| 25 |
no-host |
bin-true |
134,316 |
0 |
0 |
0 |
16 |
0 |
1,995 |
78 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
109,991 |
0 |
0 |
0 |
8 |
0 |
1,999 |
57 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,087 |
0 |
0 |
0 |
25,272 |
0 |
14,078 |
1,005 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,830 |
0 |
0 |
0 |
25,280 |
0 |
14,111 |
983 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,902 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
825 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,594,035 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
874 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,513 |
1 |
0 |
0 |
25,272 |
0 |
11,299 |
845 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,210 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
198 |
bash |
| 12 |
no-host |
configure.ocaml |
280,524 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
189 |
dash |
| 20 |
no-host |
configure.ocaml |
306,115 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
225 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,042 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
224 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,798 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
212 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,235 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,581 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,682 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,139 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,990 |
1 |
0 |
232 |
35,944 |
0 |
19,011 |
1,061 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,929 |
1 |
0 |
0 |
35,936 |
0 |
17,125 |
1,410 |
dash |
| 19 |
no-host |
configure.util-linux |
1,492,104 |
1 |
0 |
0 |
35,952 |
0 |
16,185 |
887 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,302 |
0 |
0 |
0 |
35,944 |
0 |
16,198 |
933 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,964 |
0 |
0 |
0 |
35,936 |
0 |
16,214 |
893 |
osh-static |
| 6 |
no-host |
configure.yash |
173,269 |
0 |
0 |
0 |
3,616 |
0 |
880 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,592 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
118 |
dash |
| 22 |
no-host |
configure.yash |
177,027 |
0 |
0 |
0 |
3,624 |
0 |
856 |
90 |
osh-native |
| 30 |
no-host |
configure.yash |
176,862 |
0 |
0 |
0 |
3,632 |
0 |
857 |
104 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,079 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host