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,680 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 170 | 25 | 81 | 46.1 | 51.4 | 1,653,268 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,871 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,136 | 31,810 | 12 | 50,000 | 0 | 2,820 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.6 | 8.7 | 995,213 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,280 | 478 | 3 | 85,322 | 1 | 42,661 | 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.1 | bash | - |
105 | 56 | 56 | 3.3 | zsh | - |
16 | 8 | 8 | 28.7 | bumpleak/osh | mut |
20 | 16 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
23 | 11 | 11 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 19 | 11 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 35 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
39 | 35 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 43 | 0 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 48 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 77 | 0 | 3.1 | bash | - |
380 | 230 | 172 | 3.5 | zsh | - |
51 | 35 | 16 | 84.2 | bumpleak/osh | mut |
60 | 44 | 16 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
72 | 63 | 8 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 65 | 32 | 73.4 | osh-native | mut+alloc |
106 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
170 | 129 | 40 | 51.4 | osh-native | mut+alloc+free+gc |
163 | 127 | 36 | 52.1 | osh-native | mut+alloc+free+gc+exit |
141 | 105 | 36 | 97.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
229 | 209 | 20 | 71.9 | _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.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.4 | zsh | - |
6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
6 | 3 | 3 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 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 | 10 | 0 | 1.6 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 19 | 5 | 3.3 | zsh | - |
18 | 18 | 0 | 30.7 | bumpleak/osh | mut |
27 | 26 | 0 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 18 | 18 | 26.3 | osh-native | mut+alloc |
38 | 26 | 11 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
53 | 41 | 12 | 36.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.2 | _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.1 | bash | - |
169 | 108 | 60 | 54.6 | bumpleak/osh | mut |
181 | 128 | 52 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 142 | 53 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 133 | 76 | 47.0 | osh-native | mut+alloc |
219 | 139 | 79 | 48.9 | osh-native | mut+alloc+free |
179 | 127 | 52 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 146 | 35 | 8.7 | osh-native | mut+alloc+free+gc+exit |
236 | 156 | 80 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 140 | 68 | 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 | - |
20 | 16 | 5 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
20 | 11 | 9 | 12.3 | bumpleak/osh | mut |
21 | 12 | 9 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 10.7 | osh-native | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc+free |
23 | 13 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 12 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 7 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |