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 |
22 |
24 |
21 |
1.45 |
1.35 |
| bin-true |
no-host |
612 |
437 |
829 |
824 |
669 |
1.35 |
1.09 |
| configure.cpython |
no-host |
13,735 |
13,783 |
12,969 |
12,992 |
12,496 |
0.94 |
0.91 |
| configure.ocaml |
no-host |
3,633 |
3,607 |
3,689 |
3,703 |
3,672 |
1.02 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
47 |
48 |
43 |
1.03 |
0.95 |
| configure.util-linux |
no-host |
12,439 |
13,280 |
10,288 |
10,458 |
10,046 |
0.83 |
0.81 |
| configure.yash |
no-host |
1,680 |
1,669 |
1,692 |
1,717 |
1,644 |
1.01 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
2 |
2.70 |
1.31 |
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,383 |
1,171 |
3,484 |
3,577 |
2,960 |
1.46 |
1.24 |
| bin-true |
no-host |
100,418 |
49,362 |
135,814 |
136,171 |
112,161 |
1.35 |
1.12 |
| configure.cpython |
no-host |
1,628,824 |
1,633,075 |
1,531,846 |
1,539,106 |
1,460,877 |
0.94 |
0.90 |
| configure.ocaml |
no-host |
298,885 |
280,473 |
306,128 |
306,944 |
301,131 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,219 |
4,220 |
5,714 |
5,778 |
5,257 |
1.09 |
1.01 |
| configure.util-linux |
no-host |
1,534,707 |
1,697,087 |
1,239,678 |
1,258,908 |
1,211,953 |
0.81 |
0.79 |
| configure.yash |
no-host |
173,385 |
159,540 |
176,952 |
176,951 |
172,850 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
87 |
521 |
528 |
311 |
3.47 |
2.07 |
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.8 |
6.9 |
3,896 |
3,896 |
0 |
720 |
1,912 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
829 |
1 |
2 |
4.1 |
9.3 |
151,881 |
10,750 |
2,964 |
14,779 |
72,386 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,969 |
1 |
62 |
14.8 |
34.3 |
1,674,700 |
37,450 |
28,935 |
87,942 |
833,631 |
753,127 |
25,001 |
58 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,288 |
3 |
63 |
20.0 |
39.6 |
2,673,485 |
106,817 |
66,323 |
110,632 |
1,301,531 |
1,261,322 |
32,420 |
41 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,689 |
1 |
2 |
3.3 |
28.8 |
149,681 |
12,642 |
6,557 |
9,211 |
70,286 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.9 |
26.3 |
30,530 |
30,530 |
0 |
1,678 |
14,463 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,692 |
1 |
2 |
3.2 |
33.3 |
143,443 |
11,455 |
6,611 |
7,164 |
70,499 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.7 |
10.1 |
117,212 |
65,784 |
41,994 |
4,974 |
54,587 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.8 |
7.6 |
3,895 |
3,895 |
0 |
719 |
1,912 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
824 |
1 |
2 |
4.1 |
10.0 |
151,881 |
10,754 |
2,968 |
14,779 |
72,386 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,992 |
1 |
61 |
14.8 |
34.6 |
1,674,699 |
37,455 |
28,940 |
87,941 |
833,631 |
753,127 |
25,001 |
58 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,458 |
3 |
60 |
20.0 |
39.7 |
2,673,485 |
106,823 |
66,329 |
110,632 |
1,301,531 |
1,261,322 |
32,420 |
41 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,703 |
1 |
2 |
3.3 |
28.7 |
149,681 |
12,647 |
6,562 |
9,211 |
70,286 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.9 |
26.1 |
30,530 |
30,530 |
0 |
1,678 |
14,463 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,717 |
1 |
2 |
3.2 |
33.4 |
143,443 |
11,459 |
6,615 |
7,164 |
70,499 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
24 |
1 |
2 |
3.7 |
10.5 |
117,212 |
65,788 |
41,998 |
4,974 |
54,587 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
6 |
17 |
10.1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
24 |
13 |
11 |
10.5 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
6.9 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
309 |
340 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
437 |
263 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
829 |
310 |
536 |
9.3 |
osh-native |
| 25 |
no-host |
bin-true |
824 |
294 |
546 |
10.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
669 |
346 |
341 |
5.9 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,735 |
7,483 |
6,642 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,783 |
7,555 |
6,634 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
12,969 |
6,835 |
6,391 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
12,992 |
6,914 |
6,346 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,496 |
6,859 |
5,854 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,633 |
1,476 |
1,197 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,607 |
1,463 |
1,168 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,689 |
1,485 |
1,244 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,703 |
1,468 |
1,279 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,672 |
1,452 |
1,253 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
25 |
19 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,439 |
6,493 |
6,415 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,280 |
6,395 |
7,380 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
10,288 |
5,197 |
5,185 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,458 |
5,343 |
5,210 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,046 |
5,249 |
4,886 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,680 |
941 |
747 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,669 |
951 |
720 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,692 |
916 |
779 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,717 |
918 |
801 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,644 |
884 |
764 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.6 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
2 |
1 |
1 |
3.9 |
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,383 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,171 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,484 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,577 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,960 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
100,418 |
0 |
0 |
0 |
8 |
0 |
2,000 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,362 |
0 |
0 |
0 |
8 |
0 |
2,996 |
44 |
dash |
| 17 |
no-host |
bin-true |
135,814 |
0 |
0 |
0 |
16 |
0 |
1,999 |
91 |
osh-native |
| 25 |
no-host |
bin-true |
136,171 |
0 |
0 |
0 |
16 |
0 |
1,996 |
78 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,161 |
0 |
0 |
0 |
8 |
0 |
1,998 |
89 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,824 |
0 |
0 |
0 |
25,272 |
0 |
14,072 |
1,003 |
bash |
| 10 |
no-host |
configure.cpython |
1,633,075 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
1,028 |
dash |
| 18 |
no-host |
configure.cpython |
1,531,846 |
0 |
0 |
0 |
24,032 |
0 |
10,489 |
805 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,539,106 |
0 |
0 |
0 |
24,032 |
0 |
10,499 |
824 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,460,877 |
0 |
0 |
0 |
24,032 |
0 |
10,497 |
800 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,885 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,473 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
306,128 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,944 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
194 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,131 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
229 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,220 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,714 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,778 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,257 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,707 |
0 |
0 |
232 |
35,944 |
0 |
18,985 |
1,165 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,087 |
0 |
0 |
0 |
35,936 |
0 |
17,110 |
1,178 |
dash |
| 19 |
no-host |
configure.util-linux |
1,239,678 |
3 |
0 |
0 |
24,264 |
0 |
7,778 |
807 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,258,908 |
2 |
0 |
0 |
24,264 |
0 |
7,836 |
833 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,211,953 |
0 |
0 |
0 |
24,256 |
0 |
7,625 |
803 |
osh-static |
| 6 |
no-host |
configure.yash |
173,385 |
0 |
0 |
0 |
3,616 |
0 |
881 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,540 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
108 |
dash |
| 22 |
no-host |
configure.yash |
176,952 |
0 |
0 |
0 |
3,624 |
0 |
857 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
176,951 |
0 |
0 |
0 |
3,624 |
0 |
858 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,850 |
0 |
0 |
0 |
3,616 |
0 |
857 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
521 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
528 |
0 |
0 |
0 |
16 |
0 |
1 |
2 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
311 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host