Source code: oil/benchmarks/gc.sh
task | elapsed ms | max gc millis | total gc millis | allocated MB | max rss MB | num allocated | num gc points | num gc done | gc threshold | num growths | max survived | shell label |
parse.configure-cpython | 37 | 4 | 10 | 12.0 | 17.8 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 149 | 24 | 61 | 46.1 | 51.3 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 29 | 0 | 1 | 2.6 | 8.0 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.8 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.7 | 116,291 | 478 | 3 | 85,342 | 1 | 42,671 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
104 | 59 | 51 | 3.4 | zsh | - |
17 | 17 | 0 | 28.4 | bumpleak/osh | mut |
20 | 16 | 4 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 7 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
37 | 22 | 15 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing the autoconf-generated configure
script from GNU coreutils.
Note that unlike other shells, osh -n
retains all nodes on purpose. (See the
parser benchmark).
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
22 | 21 | 0 | 1.4 | dash | - |
78 | 77 | 0 | 3.1 | bash | - |
381 | 226 | 176 | 3.5 | zsh | - |
48 | 44 | 4 | 84.8 | bumpleak/osh | mut |
59 | 55 | 4 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
72 | 67 | 4 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 61 | 37 | 73.3 | osh-native | mut+alloc |
106 | 86 | 20 | 75.3 | osh-native | mut+alloc+free |
149 | 129 | 20 | 51.3 | osh-native | mut+alloc+free+gc |
151 | 123 | 28 | 50.4 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 178 | 36 | 74.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing abuild
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
2 | 2 | 0 | 1.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 11.8 | bumpleak/osh | mut |
6 | 6 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 6 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 7 | 3 | 1.4 | dash | - |
28 | 28 | 0 | 2.8 | bash | - |
23 | 15 | 8 | 3.1 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
25 | 21 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
38 | 33 | 4 | 26.7 | osh-native | mut+alloc+free |
29 | 21 | 7 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 16 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 39 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
72 | 68 | 4 | 3.0 | bash | - |
168 | 112 | 56 | 55.6 | bumpleak/osh | mut |
177 | 109 | 69 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 121 | 73 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 125 | 85 | 47.1 | osh-native | mut+alloc |
215 | 163 | 52 | 48.9 | osh-native | mut+alloc+free |
180 | 139 | 40 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 140 | 40 | 8.7 | osh-native | mut+alloc+free+gc+exit |
229 | 133 | 96 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 162 | 44 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 9 | 1 | 3.5 | dash | - |
20 | 18 | 3 | 4.5 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
18 | 10 | 8 | 12.9 | bumpleak/osh | mut |
20 | 19 | 2 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 8 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.0 | osh-native | mut+alloc |
23 | 11 | 12 | 10.9 | osh-native | mut+alloc+free |
23 | 11 | 12 | 8.7 | osh-native | mut+alloc+free+gc |
23 | 14 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 12 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |