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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 145 | 22 | 58 | 46.1 | 51.4 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.4 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 3 | 10.6 | 8.5 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 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 | 58 | 53 | 3.4 | zsh | - |
15 | 10 | 5 | 28.6 | bumpleak/osh | mut |
19 | 16 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 8 | 15 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 28 | 20 | 22.0 | _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 | 22 | 0 | 1.6 | dash | - |
77 | 69 | 8 | 3.3 | bash | - |
380 | 203 | 198 | 3.5 | zsh | - |
48 | 44 | 4 | 84.1 | bumpleak/osh | mut |
62 | 61 | 0 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
72 | 48 | 24 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 77 | 20 | 73.3 | osh-native | mut+alloc |
106 | 70 | 35 | 75.1 | osh-native | mut+alloc+free |
145 | 113 | 32 | 51.4 | osh-native | mut+alloc+free+gc |
146 | 110 | 35 | 50.6 | osh-native | mut+alloc+free+gc+exit |
137 | 101 | 36 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 173 | 28 | 72.3 | _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.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
5 | 3 | 3 | 11.9 | bumpleak/osh | mut |
6 | 0 | 6 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc+free |
8 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 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 |
11 | 7 | 4 | 1.3 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
20 | 12 | 8 | 32.5 | bumpleak/osh | mut |
25 | 21 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
35 | 31 | 4 | 26.3 | osh-native | mut+alloc |
38 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 41 | 12 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.4 | _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 |
73 | 56 | 16 | 3.0 | bash | - |
162 | 89 | 73 | 55.8 | bumpleak/osh | mut |
179 | 123 | 56 | 54.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 147 | 48 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 135 | 79 | 47.1 | osh-native | mut+alloc |
217 | 142 | 75 | 48.8 | osh-native | mut+alloc+free |
183 | 131 | 52 | 8.5 | osh-native | mut+alloc+free+gc |
182 | 126 | 55 | 8.8 | osh-native | mut+alloc+free+gc+exit |
227 | 142 | 85 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 127 | 79 | 10.1 | _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 | 10 | 0 | 3.4 | dash | - |
20 | 14 | 6 | 4.3 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
18 | 16 | 2 | 13.1 | bumpleak/osh | mut |
21 | 15 | 6 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 10 | 12 | 10.9 | osh-native | mut+alloc |
22 | 18 | 5 | 11.0 | osh-native | mut+alloc+free |
22 | 18 | 5 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 16 | 9 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 10 | 14 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |