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.31 |
1.17 |
| bin-true |
no-host |
615 |
439 |
819 |
815 |
656 |
1.33 |
1.07 |
| configure.cpython |
no-host |
13,441 |
13,549 |
13,207 |
13,283 |
12,968 |
0.98 |
0.96 |
| configure.ocaml |
no-host |
3,615 |
3,547 |
3,694 |
3,677 |
3,651 |
1.02 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
47 |
47 |
43 |
1.03 |
0.95 |
| configure.util-linux |
no-host |
12,215 |
13,039 |
12,182 |
12,773 |
12,026 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,665 |
1,608 |
1,708 |
1,709 |
1,686 |
1.03 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.05 |
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,423 |
1,157 |
3,280 |
3,431 |
2,803 |
1.35 |
1.16 |
| bin-true |
no-host |
101,463 |
49,479 |
133,591 |
138,576 |
111,032 |
1.32 |
1.09 |
| configure.cpython |
no-host |
1,613,395 |
1,639,297 |
1,594,613 |
1,613,006 |
1,523,163 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
299,360 |
280,509 |
306,326 |
306,451 |
300,361 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,219 |
4,199 |
5,622 |
5,634 |
5,130 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,532,849 |
1,700,511 |
1,494,951 |
1,511,719 |
1,456,550 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,568 |
159,535 |
176,532 |
177,135 |
172,987 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
391 |
393 |
180 |
2.59 |
1.19 |
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 |
819 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,207 |
1 |
63 |
14.8 |
34.6 |
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,182 |
3 |
62 |
21.6 |
39.7 |
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,694 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,708 |
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 |
20 |
1 |
2 |
3.0 |
9.6 |
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 |
6.8 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
815 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,283 |
1 |
65 |
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,773 |
3 |
68 |
21.6 |
39.6 |
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,677 |
1 |
2 |
2.8 |
28.6 |
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.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,709 |
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.1 |
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 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
14 |
7 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
615 |
313 |
341 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
277 |
166 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
819 |
306 |
529 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
815 |
314 |
518 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
656 |
323 |
350 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,441 |
7,376 |
6,437 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,549 |
7,516 |
6,424 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,207 |
7,035 |
6,443 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,283 |
6,957 |
6,612 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,968 |
7,209 |
6,001 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,615 |
1,447 |
1,209 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,547 |
1,411 |
1,159 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,694 |
1,491 |
1,244 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,677 |
1,436 |
1,282 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,651 |
1,457 |
1,226 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
21 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
21 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
22 |
25 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
31 |
17 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
18 |
25 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,215 |
6,464 |
6,208 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,039 |
6,437 |
7,092 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,182 |
6,044 |
6,353 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,773 |
6,282 |
6,722 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,026 |
6,114 |
6,126 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,665 |
965 |
709 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,608 |
922 |
688 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,708 |
925 |
781 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,709 |
953 |
759 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,686 |
959 |
730 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.8 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,423 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,157 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,280 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,431 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,803 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,463 |
0 |
0 |
0 |
8 |
0 |
2,001 |
56 |
bash |
| 9 |
no-host |
bin-true |
49,479 |
0 |
0 |
0 |
8 |
0 |
2,993 |
65 |
dash |
| 17 |
no-host |
bin-true |
133,591 |
0 |
0 |
0 |
16 |
0 |
1,996 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
138,576 |
0 |
0 |
0 |
16 |
0 |
1,997 |
89 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,032 |
0 |
0 |
0 |
8 |
0 |
1,999 |
89 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,613,395 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,065 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,297 |
0 |
0 |
0 |
25,272 |
0 |
14,127 |
1,002 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,613 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
863 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,613,006 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
854 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,163 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
906 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,360 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
280,509 |
1 |
0 |
0 |
4,432 |
0 |
2,110 |
194 |
dash |
| 20 |
no-host |
configure.ocaml |
306,326 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
217 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,451 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
208 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,361 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
238 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,622 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,634 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,849 |
0 |
0 |
0 |
35,944 |
0 |
18,953 |
1,054 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,511 |
2 |
0 |
0 |
35,936 |
0 |
17,074 |
1,207 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,951 |
1 |
0 |
0 |
35,952 |
0 |
16,145 |
911 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,511,719 |
1 |
0 |
0 |
35,952 |
0 |
16,217 |
1,028 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,456,550 |
1 |
0 |
0 |
35,936 |
0 |
16,168 |
871 |
osh-static |
| 6 |
no-host |
configure.yash |
173,568 |
0 |
0 |
0 |
3,616 |
0 |
878 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,535 |
0 |
0 |
0 |
3,616 |
0 |
999 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,532 |
0 |
0 |
8 |
3,624 |
0 |
859 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,135 |
0 |
0 |
0 |
3,624 |
0 |
858 |
108 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,987 |
0 |
0 |
0 |
3,624 |
0 |
858 |
93 |
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 |
1 |
dash |
| 16 |
no-host |
hello-world |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
393 |
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