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 | 46 | 8 | 16 | 12.0 | 17.7 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 192 | 30 | 99 | 44.6 | 50.0 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 7.9 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
ex.bashcomp-parse-help | 184 | 0 | 5 | 10.3 | 8.7 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 8.9 | 116,311 | 270 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
24 | 24 | 0 | 3.0 | bash | - |
116 | 63 | 59 | 3.4 | zsh | - |
16 | 16 | 0 | 29.1 | bumpleak/osh | mut |
20 | 16 | 4 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 19 | 12 | 25.0 | osh-native | mut+alloc |
33 | 11 | 22 | 25.6 | osh-native | mut+alloc+free |
46 | 38 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
45 | 41 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
45 | 34 | 11 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
66 | 50 | 15 | 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 | 74 | 4 | 3.3 | bash | - |
412 | 244 | 192 | 3.5 | zsh | - |
49 | 38 | 11 | 84.3 | bumpleak/osh | mut |
61 | 48 | 12 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
72 | 55 | 16 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
100 | 48 | 52 | 73.3 | osh-native | mut+alloc |
110 | 59 | 51 | 75.3 | osh-native | mut+alloc+free |
192 | 168 | 24 | 50.0 | osh-native | mut+alloc+free+gc |
204 | 164 | 40 | 50.7 | osh-native | mut+alloc+free+gc+exit |
143 | 111 | 33 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
278 | 254 | 24 | 67.7 | _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 |
3 | 3 | 0 | 1.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 0 | 8 | 3.3 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc |
10 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 7 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 13 | 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 |
10 | 7 | 3 | 1.6 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
20 | 8 | 12 | 32.3 | bumpleak/osh | mut |
27 | 26 | 0 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 14 | 14 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 25 | 12 | 26.3 | osh-native | mut+alloc |
40 | 24 | 16 | 26.6 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
57 | 40 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 4 | 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.3 | bash | - |
169 | 80 | 88 | 54.6 | bumpleak/osh | mut |
181 | 96 | 84 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
199 | 123 | 76 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 135 | 80 | 47.0 | osh-native | mut+alloc |
224 | 144 | 80 | 48.7 | osh-native | mut+alloc+free |
184 | 143 | 40 | 8.7 | osh-native | mut+alloc+free+gc |
188 | 156 | 32 | 8.8 | osh-native | mut+alloc+free+gc+exit |
236 | 172 | 64 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
237 | 178 | 59 | 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 | 5 | 6 | 3.5 | dash | - |
22 | 11 | 11 | 4.3 | bash | - |
19 | 9 | 10 | 3.4 | zsh | - |
21 | 10 | 11 | 12.7 | bumpleak/osh | mut |
22 | 10 | 12 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 10 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc |
23 | 11 | 13 | 11.0 | osh-native | mut+alloc+free |
24 | 14 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 20 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
26 | 18 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 17 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |