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 | 17.8 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 149 | 25 | 62 | 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 | 1 | 2.6 | 7.7 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.7 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 22 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 65 | 46 | 3.4 | zsh | - |
16 | 16 | 0 | 29.2 | bumpleak/osh | mut |
20 | 15 | 5 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 15 | 15 | 25.0 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 18 | 18 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 21.9 | _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 | - |
377 | 219 | 179 | 3.5 | zsh | - |
48 | 32 | 16 | 84.5 | bumpleak/osh | mut |
61 | 49 | 12 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 42 | 27 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 53 | 45 | 73.4 | osh-native | mut+alloc |
106 | 70 | 35 | 75.3 | osh-native | mut+alloc+free |
149 | 130 | 20 | 51.4 | osh-native | mut+alloc+free+gc |
161 | 133 | 27 | 52.3 | osh-native | mut+alloc+free+gc+exit |
141 | 96 | 44 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 194 | 32 | 72.1 | _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.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 11.0 | bumpleak/osh | mut |
6 | 6 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 3 | 6 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.7 | 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 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 8 | 15 | 3.4 | zsh | - |
20 | 20 | 0 | 30.8 | bumpleak/osh | mut |
26 | 21 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
38 | 34 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 49 | 4 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 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 |
73 | 73 | 0 | 3.1 | bash | - |
167 | 111 | 55 | 55.7 | bumpleak/osh | mut |
178 | 134 | 44 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
193 | 128 | 64 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 109 | 101 | 46.9 | osh-native | mut+alloc |
219 | 142 | 77 | 48.8 | osh-native | mut+alloc+free |
181 | 117 | 64 | 8.7 | osh-native | mut+alloc+free+gc |
180 | 108 | 72 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 132 | 100 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 144 | 64 | 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 | 19 | 1 | 4.5 | bash | - |
17 | 6 | 12 | 3.4 | zsh | - |
18 | 12 | 6 | 13.1 | bumpleak/osh | mut |
21 | 7 | 14 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 12 | 9 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 13 | 10 | 10.9 | osh-native | mut+alloc |
23 | 15 | 9 | 11.0 | osh-native | mut+alloc+free |
22 | 11 | 12 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 12 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 20 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |