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 | 42 | 7 | 15 | 12.0 | 18.0 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 190 | 29 | 97 | 46.1 | 51.4 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 11 | 1 | 2 | 2.6 | 8.4 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.9 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 187 | 0 | 5 | 10.6 | 8.7 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 24 | 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 | 3 | 3 | 1.6 | dash | - |
24 | 24 | 0 | 3.0 | bash | - |
110 | 64 | 52 | 3.4 | zsh | - |
17 | 13 | 4 | 27.9 | bumpleak/osh | mut |
20 | 16 | 4 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 27 | 4 | 25.0 | osh-native | mut+alloc |
35 | 19 | 15 | 25.7 | osh-native | mut+alloc+free |
42 | 38 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
40 | 27 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 36 | 8 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
58 | 53 | 4 | 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 | - |
78 | 78 | 0 | 3.3 | bash | - |
390 | 211 | 202 | 3.4 | zsh | - |
50 | 42 | 8 | 85.3 | bumpleak/osh | mut |
62 | 62 | 0 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
71 | 52 | 20 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
102 | 61 | 41 | 73.4 | osh-native | mut+alloc |
109 | 66 | 43 | 75.3 | osh-native | mut+alloc+free |
190 | 165 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
198 | 161 | 36 | 50.6 | osh-native | mut+alloc+free+gc+exit |
142 | 105 | 36 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
270 | 246 | 24 | 74.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 | 0 | 2 | 1.3 | dash | - |
6 | 3 | 3 | 2.8 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 11.0 | bumpleak/osh | mut |
7 | 4 | 4 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc+free |
11 | 7 | 3 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
13 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 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.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
25 | 16 | 8 | 3.1 | zsh | - |
20 | 20 | 0 | 31.7 | bumpleak/osh | mut |
26 | 21 | 4 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.5 | osh-native | mut+alloc |
40 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
29 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 21 | 7 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 47 | 8 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 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 |
75 | 70 | 4 | 3.1 | bash | - |
171 | 110 | 61 | 55.7 | bumpleak/osh | mut |
180 | 128 | 52 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
197 | 120 | 76 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 107 | 107 | 47.0 | osh-native | mut+alloc |
226 | 163 | 64 | 48.8 | osh-native | mut+alloc+free |
187 | 143 | 44 | 8.7 | osh-native | mut+alloc+free+gc |
188 | 128 | 60 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 163 | 71 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
231 | 178 | 53 | 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 |
11 | 8 | 3 | 3.5 | dash | - |
21 | 18 | 3 | 4.5 | bash | - |
19 | 14 | 5 | 3.5 | zsh | - |
20 | 11 | 9 | 12.0 | bumpleak/osh | mut |
22 | 19 | 4 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 9 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 10.9 | osh-native | mut+alloc |
25 | 23 | 3 | 10.9 | osh-native | mut+alloc+free |
24 | 18 | 7 | 8.7 | osh-native | mut+alloc+free+gc |
24 | 17 | 8 | 8.8 | osh-native | mut+alloc+free+gc+exit |
26 | 11 | 15 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
28 | 15 | 13 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |