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 |
22 |
19 |
1.34 |
1.16 |
| bin-true |
no-host |
630 |
445 |
836 |
835 |
661 |
1.33 |
1.05 |
| configure.cpython |
no-host |
13,942 |
14,260 |
13,631 |
13,538 |
13,024 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
3,715 |
3,636 |
3,724 |
3,695 |
3,663 |
1.00 |
0.99 |
| configure.tcc |
no-host |
48 |
42 |
48 |
47 |
44 |
1.01 |
0.93 |
| configure.util-linux |
no-host |
12,615 |
13,597 |
12,582 |
12,563 |
12,144 |
1.00 |
0.96 |
| configure.yash |
no-host |
1,735 |
1,640 |
1,711 |
1,687 |
1,664 |
0.99 |
0.96 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.56 |
1.06 |
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,409 |
1,150 |
3,322 |
3,419 |
2,802 |
1.38 |
1.16 |
| bin-true |
no-host |
101,403 |
49,397 |
135,554 |
136,611 |
111,335 |
1.34 |
1.10 |
| configure.cpython |
no-host |
1,624,009 |
1,637,091 |
1,585,097 |
1,617,688 |
1,521,743 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,919 |
280,831 |
305,852 |
307,309 |
299,915 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,207 |
4,216 |
5,571 |
5,703 |
5,134 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,535,736 |
1,700,889 |
1,504,475 |
1,510,936 |
1,449,660 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,242 |
159,517 |
176,804 |
176,935 |
172,719 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
390 |
398 |
180 |
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 |
836 |
1 |
2 |
3.5 |
8.9 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,631 |
1 |
69 |
14.8 |
34.5 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,582 |
3 |
67 |
21.6 |
39.6 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,724 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,711 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
9.3 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
835 |
1 |
2 |
3.5 |
8.9 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,538 |
1 |
69 |
14.9 |
34.5 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,563 |
3 |
66 |
21.6 |
39.7 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,695 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,687 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
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 |
9 |
9 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
326 |
342 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
272 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
836 |
312 |
541 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
835 |
305 |
548 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
661 |
349 |
331 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,942 |
7,692 |
6,650 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,260 |
7,742 |
6,932 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,631 |
7,245 |
6,670 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,538 |
7,204 |
6,634 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,024 |
7,130 |
6,137 |
34.1 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,715 |
1,462 |
1,295 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,636 |
1,446 |
1,216 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,724 |
1,482 |
1,284 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,695 |
1,470 |
1,270 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,663 |
1,454 |
1,242 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
22 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
30 |
18 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
22 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,615 |
6,652 |
6,451 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,597 |
6,673 |
7,441 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,582 |
6,273 |
6,537 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,563 |
6,196 |
6,593 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,144 |
6,257 |
6,107 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,735 |
984 |
758 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,640 |
932 |
710 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,711 |
982 |
732 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,687 |
933 |
758 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,664 |
928 |
739 |
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.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
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,409 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,150 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,322 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,419 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,802 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,403 |
0 |
0 |
0 |
8 |
0 |
1,994 |
72 |
bash |
| 9 |
no-host |
bin-true |
49,397 |
0 |
0 |
0 |
8 |
0 |
2,995 |
53 |
dash |
| 17 |
no-host |
bin-true |
135,554 |
0 |
0 |
0 |
16 |
0 |
1,998 |
92 |
osh-native |
| 25 |
no-host |
bin-true |
136,611 |
0 |
0 |
0 |
16 |
0 |
1,997 |
74 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,335 |
0 |
0 |
0 |
8 |
0 |
2,000 |
104 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,009 |
0 |
0 |
0 |
25,272 |
0 |
14,082 |
1,010 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,091 |
0 |
0 |
0 |
25,272 |
0 |
14,134 |
1,025 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,097 |
1 |
0 |
0 |
25,280 |
0 |
11,325 |
848 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,617,688 |
0 |
0 |
0 |
25,280 |
0 |
11,358 |
876 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,743 |
1 |
0 |
0 |
25,272 |
0 |
11,307 |
852 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,919 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
214 |
bash |
| 12 |
no-host |
configure.ocaml |
280,831 |
0 |
0 |
0 |
4,432 |
0 |
2,116 |
185 |
dash |
| 20 |
no-host |
configure.ocaml |
305,852 |
0 |
0 |
8 |
4,440 |
0 |
2,002 |
198 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,309 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
195 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,915 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
206 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,207 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
51 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,571 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,703 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,134 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,736 |
0 |
0 |
0 |
35,944 |
0 |
18,990 |
1,111 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,889 |
1 |
0 |
0 |
35,936 |
0 |
17,104 |
1,198 |
dash |
| 19 |
no-host |
configure.util-linux |
1,504,475 |
1 |
0 |
0 |
35,952 |
0 |
16,186 |
953 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,510,936 |
0 |
0 |
0 |
35,944 |
0 |
16,150 |
893 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,660 |
1 |
0 |
0 |
35,936 |
0 |
16,163 |
909 |
osh-static |
| 6 |
no-host |
configure.yash |
173,242 |
0 |
0 |
0 |
3,616 |
0 |
878 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,517 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
99 |
dash |
| 22 |
no-host |
configure.yash |
176,804 |
0 |
0 |
0 |
3,632 |
0 |
852 |
106 |
osh-native |
| 30 |
no-host |
configure.yash |
176,935 |
0 |
0 |
0 |
3,632 |
0 |
858 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,719 |
0 |
0 |
0 |
3,624 |
0 |
858 |
91 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host