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 | 161 | 25 | 72 | 46.1 | 51.7 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.7 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.6 | 8.8 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 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 |
7 | 7 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 53 | 58 | 3.4 | zsh | - |
16 | 16 | 0 | 28.8 | bumpleak/osh | mut |
19 | 19 | 0 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.4 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 36 | 0 | 17.7 | osh-native | mut+alloc+free+gc+exit |
44 | 36 | 8 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.3 | _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 | 78 | 0 | 3.1 | bash | - |
374 | 208 | 187 | 3.5 | zsh | - |
50 | 42 | 8 | 85.0 | bumpleak/osh | mut |
60 | 55 | 4 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 67 | 31 | 73.4 | osh-native | mut+alloc |
106 | 66 | 39 | 75.3 | osh-native | mut+alloc+free |
161 | 141 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
157 | 141 | 16 | 52.1 | osh-native | mut+alloc+free+gc+exit |
139 | 91 | 47 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
220 | 188 | 32 | 72.8 | _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 | 3 | 3 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 10.8 | bumpleak/osh | mut |
6 | 6 | 0 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 5 | 5 | 10.1 | osh-native | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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.3 | zsh | - |
19 | 19 | 0 | 32.6 | bumpleak/osh | mut |
26 | 17 | 9 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.3 | osh-native | mut+alloc |
38 | 26 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 39 | 16 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 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 |
73 | 73 | 0 | 3.0 | bash | - |
166 | 113 | 53 | 55.2 | bumpleak/osh | mut |
180 | 120 | 60 | 55.0 | _bin/cxx-opt+bumproot/osh | mut |
194 | 127 | 67 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 151 | 60 | 47.1 | osh-native | mut+alloc |
219 | 121 | 97 | 48.8 | osh-native | mut+alloc+free |
179 | 111 | 68 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 117 | 65 | 8.5 | osh-native | mut+alloc+free+gc+exit |
235 | 135 | 99 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 145 | 65 | 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 | 6 | 4 | 3.4 | dash | - |
20 | 7 | 14 | 4.3 | bash | - |
18 | 9 | 10 | 3.5 | zsh | - |
18 | 14 | 5 | 11.4 | bumpleak/osh | mut |
21 | 20 | 2 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 12 | 11 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 10.7 | osh-native | mut+alloc |
23 | 19 | 5 | 10.7 | osh-native | mut+alloc+free |
22 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 22 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 8 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 22 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |