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 | 4 | 10 | 12.0 | 17.8 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 147 | 23 | 60 | 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.5 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.7 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 181 | 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.9 | 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.4 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
104 | 72 | 40 | 3.4 | zsh | - |
16 | 12 | 4 | 29.3 | bumpleak/osh | mut |
19 | 15 | 4 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 24.9 | osh-native | mut+alloc |
31 | 23 | 8 | 25.4 | osh-native | mut+alloc+free |
35 | 35 | 0 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 39 | 4 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 42 | 4 | 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.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
375 | 217 | 179 | 3.5 | zsh | - |
48 | 40 | 8 | 85.5 | bumpleak/osh | mut |
60 | 40 | 20 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
69 | 46 | 23 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 40 | 56 | 73.4 | osh-native | mut+alloc |
105 | 72 | 32 | 75.3 | osh-native | mut+alloc+free |
147 | 135 | 12 | 51.4 | osh-native | mut+alloc+free+gc |
146 | 130 | 16 | 50.6 | osh-native | mut+alloc+free+gc+exit |
137 | 90 | 47 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 177 | 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 | 6 | 0 | 2.8 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
5 | 0 | 5 | 11.8 | bumpleak/osh | mut |
6 | 6 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc+free |
8 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 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 | 10 | 0 | 1.3 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
19 | 19 | 0 | 31.8 | bumpleak/osh | mut |
26 | 21 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 30 | 7 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 17 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 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 | - |
167 | 91 | 75 | 55.7 | bumpleak/osh | mut |
178 | 121 | 56 | 54.7 | _bin/cxx-opt+bumproot/osh | mut |
193 | 128 | 64 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 121 | 89 | 47.1 | osh-native | mut+alloc |
218 | 142 | 75 | 48.9 | osh-native | mut+alloc+free |
181 | 141 | 40 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 146 | 85 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 149 | 56 | 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 | 7 | 3 | 3.5 | dash | - |
19 | 14 | 5 | 4.2 | bash | - |
18 | 6 | 12 | 3.4 | zsh | - |
19 | 13 | 6 | 12.0 | bumpleak/osh | mut |
21 | 19 | 3 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
20 | 19 | 2 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 10.7 | osh-native | mut+alloc |
22 | 18 | 5 | 10.9 | osh-native | mut+alloc+free |
23 | 12 | 11 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 12 | 12 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |