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 |
21 |
18 |
1.31 |
1.17 |
| bin-true |
no-host |
607 |
437 |
803 |
806 |
646 |
1.32 |
1.06 |
| configure.cpython |
no-host |
13,684 |
13,589 |
13,448 |
13,523 |
12,648 |
0.98 |
0.92 |
| configure.ocaml |
no-host |
3,619 |
3,618 |
3,731 |
3,648 |
3,607 |
1.03 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
47 |
46 |
42 |
1.04 |
0.94 |
| configure.util-linux |
no-host |
12,497 |
13,152 |
12,480 |
12,391 |
11,865 |
1.00 |
0.95 |
| configure.yash |
no-host |
1,728 |
1,641 |
1,680 |
1,663 |
1,671 |
0.97 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.48 |
1.00 |
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,398 |
1,160 |
3,296 |
3,386 |
2,815 |
1.37 |
1.17 |
| bin-true |
no-host |
99,444 |
49,470 |
133,359 |
136,001 |
110,040 |
1.34 |
1.11 |
| configure.cpython |
no-host |
1,628,707 |
1,635,648 |
1,593,065 |
1,605,746 |
1,521,932 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,193 |
280,766 |
305,386 |
306,846 |
300,813 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,232 |
4,209 |
5,596 |
5,647 |
5,136 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,071 |
1,702,239 |
1,492,058 |
1,513,351 |
1,457,448 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,352 |
159,554 |
176,103 |
177,162 |
173,066 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
83 |
392 |
397 |
183 |
2.61 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
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,448 |
2 |
67 |
14.8 |
34.7 |
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,480 |
3 |
66 |
21.6 |
39.4 |
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,731 |
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 |
25.9 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,680 |
1 |
2 |
2.7 |
33.2 |
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 |
806 |
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,523 |
1 |
64 |
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,391 |
3 |
63 |
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,648 |
1 |
2 |
2.8 |
28.5 |
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.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,663 |
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.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 |
5 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
607 |
312 |
336 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
437 |
271 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
803 |
308 |
511 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
297 |
526 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
646 |
307 |
355 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,684 |
7,549 |
6,520 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,589 |
7,503 |
6,478 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,448 |
7,201 |
6,524 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,523 |
7,221 |
6,583 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,648 |
6,967 |
5,916 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,619 |
1,480 |
1,179 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,618 |
1,460 |
1,183 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,731 |
1,520 |
1,250 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,648 |
1,455 |
1,234 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,607 |
1,443 |
1,195 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
29 |
17 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
21 |
26 |
25.9 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
27 |
16 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,497 |
6,642 |
6,313 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,152 |
6,489 |
7,143 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,480 |
6,196 |
6,503 |
39.4 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,391 |
6,209 |
6,392 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,865 |
6,022 |
6,056 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,728 |
940 |
750 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,641 |
932 |
710 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,680 |
919 |
764 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,663 |
923 |
743 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,671 |
944 |
729 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.6 |
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,398 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,296 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,386 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,815 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,444 |
0 |
0 |
0 |
8 |
0 |
1,996 |
52 |
bash |
| 9 |
no-host |
bin-true |
49,470 |
0 |
0 |
0 |
8 |
0 |
2,995 |
48 |
dash |
| 17 |
no-host |
bin-true |
133,359 |
0 |
0 |
0 |
16 |
0 |
1,999 |
66 |
osh-native |
| 25 |
no-host |
bin-true |
136,001 |
0 |
0 |
0 |
16 |
0 |
1,996 |
89 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,040 |
0 |
0 |
0 |
8 |
0 |
2,000 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,707 |
0 |
0 |
0 |
25,272 |
0 |
14,094 |
1,056 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,648 |
0 |
0 |
0 |
25,272 |
0 |
14,114 |
1,028 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,065 |
0 |
0 |
0 |
25,280 |
0 |
11,287 |
759 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,605,746 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
776 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,932 |
0 |
0 |
0 |
25,272 |
0 |
11,309 |
856 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,193 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
280,766 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
305,386 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
236 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,846 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
192 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,813 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,232 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,209 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,596 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,647 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,136 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,071 |
1 |
0 |
232 |
35,944 |
0 |
19,037 |
1,051 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,239 |
1 |
0 |
0 |
35,936 |
0 |
17,168 |
1,177 |
dash |
| 19 |
no-host |
configure.util-linux |
1,492,058 |
5 |
0 |
0 |
35,952 |
0 |
16,145 |
939 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,351 |
1 |
0 |
0 |
35,944 |
0 |
16,240 |
909 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,448 |
2 |
0 |
0 |
35,936 |
0 |
16,245 |
912 |
osh-static |
| 6 |
no-host |
configure.yash |
173,352 |
0 |
0 |
0 |
3,616 |
0 |
882 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,554 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
94 |
dash |
| 22 |
no-host |
configure.yash |
176,103 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,162 |
0 |
0 |
0 |
3,624 |
0 |
858 |
93 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,066 |
0 |
0 |
0 |
3,616 |
0 |
857 |
96 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
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