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 | 36 | 4 | 10 | 12.0 | 18.0 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 158 | 26 | 70 | 46.1 | 51.4 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 8.0 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.5 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,284 | 478 | 3 | 85,332 | 1 | 42,666 | 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 | - |
105 | 55 | 56 | 3.4 | zsh | - |
16 | 16 | 0 | 29.1 | bumpleak/osh | mut |
20 | 12 | 8 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
25 | 25 | 0 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.0 | osh-native | mut+alloc |
31 | 4 | 27 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 30 | 7 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 15 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 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 | 18 | 4 | 1.6 | dash | - |
79 | 79 | 0 | 3.3 | bash | - |
377 | 214 | 184 | 3.5 | zsh | - |
50 | 38 | 11 | 84.6 | bumpleak/osh | mut |
62 | 54 | 8 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
71 | 43 | 27 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 73 | 24 | 73.4 | osh-native | mut+alloc |
106 | 63 | 43 | 75.2 | osh-native | mut+alloc+free |
158 | 121 | 36 | 51.4 | osh-native | mut+alloc+free+gc |
165 | 148 | 16 | 52.3 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
232 | 200 | 32 | 73.0 | _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 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
6 | 3 | 3 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.8 | osh-native | mut+alloc+free+gc+exit |
11 | 6 | 6 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.2 | _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.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
25 | 16 | 8 | 3.3 | zsh | - |
20 | 12 | 8 | 32.4 | bumpleak/osh | mut |
26 | 22 | 4 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.3 | osh-native | mut+alloc |
38 | 25 | 13 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
53 | 41 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 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 |
73 | 69 | 4 | 3.1 | bash | - |
168 | 92 | 76 | 55.5 | bumpleak/osh | mut |
178 | 122 | 55 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
195 | 139 | 56 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 160 | 52 | 46.9 | osh-native | mut+alloc |
233 | 149 | 84 | 48.9 | osh-native | mut+alloc+free |
181 | 129 | 52 | 8.5 | osh-native | mut+alloc+free+gc |
182 | 129 | 53 | 8.5 | osh-native | mut+alloc+free+gc+exit |
232 | 164 | 68 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 153 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 11 | 9 | 4.5 | bash | - |
18 | 16 | 2 | 3.5 | zsh | - |
19 | 11 | 8 | 11.7 | bumpleak/osh | mut |
22 | 15 | 6 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 18 | 2 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 13 | 9 | 10.9 | osh-native | mut+alloc |
23 | 18 | 5 | 10.9 | osh-native | mut+alloc+free |
23 | 13 | 11 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 16 | 10 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 24 | 1 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |