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 | 146 | 23 | 60 | 46.1 | 51.7 | 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 | 28 | 0 | 1 | 2.6 | 8.0 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 181 | 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 | 9.0 | 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 | - |
24 | 24 | 0 | 3.0 | bash | - |
103 | 59 | 50 | 3.4 | zsh | - |
16 | 12 | 4 | 29.6 | bumpleak/osh | mut |
19 | 19 | 0 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 24.9 | osh-native | mut+alloc |
31 | 26 | 4 | 25.6 | osh-native | mut+alloc+free |
35 | 22 | 13 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 26 | 17 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 35 | 12 | 21.9 | _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 | - |
77 | 77 | 0 | 3.3 | bash | - |
374 | 226 | 169 | 3.5 | zsh | - |
48 | 36 | 12 | 85.7 | bumpleak/osh | mut |
60 | 48 | 12 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 35 | 35 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 68 | 28 | 73.3 | osh-native | mut+alloc |
104 | 76 | 28 | 75.3 | osh-native | mut+alloc+free |
146 | 126 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
152 | 140 | 12 | 50.6 | osh-native | mut+alloc+free+gc+exit |
139 | 103 | 36 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 158 | 47 | 73.6 | _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 | 3.0 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
8 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.8 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.3 | _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 | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
18 | 14 | 4 | 30.9 | bumpleak/osh | mut |
25 | 18 | 7 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
37 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 49 | 4 | 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 | 64 | 8 | 3.3 | bash | - |
167 | 79 | 87 | 55.1 | bumpleak/osh | mut |
177 | 137 | 40 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
193 | 141 | 52 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 133 | 77 | 47.1 | osh-native | mut+alloc |
215 | 131 | 84 | 48.9 | osh-native | mut+alloc+free |
181 | 120 | 60 | 8.5 | osh-native | mut+alloc+free+gc |
180 | 132 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 155 | 76 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 150 | 59 | 9.9 | _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 | 8 | 2 | 3.5 | dash | - |
19 | 12 | 8 | 4.5 | bash | - |
18 | 11 | 7 | 3.4 | zsh | - |
18 | 12 | 7 | 11.5 | bumpleak/osh | mut |
19 | 13 | 7 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
22 | 7 | 16 | 11.1 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 15 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 14 | 11 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 7 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |