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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 152 | 26 | 64 | 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.4 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 181 | 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 | 8.7 | 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.4 | dash | - |
23 | 19 | 4 | 2.9 | bash | - |
104 | 62 | 49 | 3.4 | zsh | - |
16 | 16 | 0 | 28.1 | bumpleak/osh | mut |
20 | 13 | 7 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 15 | 15 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 9 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 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 | 22 | 0 | 1.6 | dash | - |
80 | 80 | 0 | 3.3 | bash | - |
378 | 226 | 171 | 3.5 | zsh | - |
50 | 49 | 0 | 84.7 | bumpleak/osh | mut |
61 | 52 | 8 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 74 | 23 | 73.4 | osh-native | mut+alloc |
105 | 58 | 47 | 75.0 | osh-native | mut+alloc+free |
152 | 124 | 28 | 51.4 | osh-native | mut+alloc+free+gc |
153 | 133 | 20 | 52.0 | osh-native | mut+alloc+free+gc+exit |
139 | 90 | 49 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 199 | 16 | 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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 10.5 | bumpleak/osh | mut |
6 | 6 | 0 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.4 | 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 |
11 | 11 | 0 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 8 | 16 | 3.1 | zsh | - |
19 | 14 | 5 | 32.0 | bumpleak/osh | mut |
25 | 18 | 7 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.5 | osh-native | mut+alloc |
38 | 25 | 13 | 26.6 | osh-native | mut+alloc+free |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 33 | 21 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 32 | 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 |
72 | 68 | 4 | 3.1 | bash | - |
174 | 121 | 53 | 55.8 | bumpleak/osh | mut |
183 | 119 | 64 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
194 | 146 | 47 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 149 | 61 | 46.9 | osh-native | mut+alloc |
218 | 129 | 89 | 48.8 | osh-native | mut+alloc+free |
181 | 137 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 136 | 44 | 8.7 | osh-native | mut+alloc+free+gc+exit |
230 | 141 | 89 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 173 | 32 | 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 | 6 | 3 | 3.4 | dash | - |
19 | 15 | 5 | 4.3 | bash | - |
18 | 14 | 4 | 3.4 | zsh | - |
20 | 6 | 14 | 12.7 | bumpleak/osh | mut |
20 | 11 | 10 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 6 | 14 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 12 | 10 | 10.9 | osh-native | mut+alloc |
23 | 22 | 1 | 10.9 | osh-native | mut+alloc+free |
22 | 18 | 5 | 8.7 | osh-native | mut+alloc+free+gc |
23 | 12 | 12 | 8.8 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |