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 | 37 | 4 | 10 | 12.0 | 17.7 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 159 | 27 | 71 | 46.1 | 51.6 | 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 | 30 | 0 | 1 | 2.6 | 7.7 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.6 | 8.7 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 23 | 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 | 3 | 3 | 1.6 | dash | - |
24 | 23 | 0 | 3.1 | bash | - |
105 | 51 | 61 | 3.4 | zsh | - |
16 | 10 | 6 | 28.3 | bumpleak/osh | mut |
20 | 20 | 0 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 25.0 | osh-native | mut+alloc |
32 | 12 | 20 | 25.4 | osh-native | mut+alloc+free |
37 | 25 | 12 | 17.7 | osh-native | mut+alloc+free+gc |
38 | 26 | 11 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 39 | 12 | 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.1 | bash | - |
376 | 227 | 171 | 3.7 | zsh | - |
49 | 41 | 7 | 85.6 | bumpleak/osh | mut |
62 | 39 | 23 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 62 | 8 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 69 | 29 | 73.3 | osh-native | mut+alloc |
107 | 63 | 43 | 75.1 | osh-native | mut+alloc+free |
159 | 135 | 24 | 51.6 | osh-native | mut+alloc+free+gc |
160 | 128 | 32 | 52.2 | osh-native | mut+alloc+free+gc+exit |
141 | 76 | 64 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
224 | 208 | 16 | 72.6 | _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 | 6 | 0 | 3.0 | bash | - |
8 | 0 | 8 | 3.4 | zsh | - |
6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
7 | 0 | 7 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 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.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 15 | 4 | 31.0 | bumpleak/osh | mut |
25 | 17 | 8 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 16 | 12 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.5 | osh-native | mut+alloc |
38 | 30 | 8 | 26.9 | osh-native | mut+alloc+free |
30 | 30 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 35 | 19 | 36.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _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 | 57 | 16 | 3.0 | bash | - |
168 | 135 | 33 | 54.5 | bumpleak/osh | mut |
181 | 120 | 60 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
197 | 132 | 64 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 162 | 49 | 46.9 | osh-native | mut+alloc |
220 | 144 | 76 | 48.9 | osh-native | mut+alloc+free |
182 | 133 | 49 | 8.7 | osh-native | mut+alloc+free+gc |
180 | 140 | 40 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 131 | 99 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 115 | 91 | 9.9 | _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 | 8 | 2 | 3.4 | dash | - |
20 | 18 | 3 | 4.5 | bash | - |
18 | 12 | 7 | 3.5 | zsh | - |
20 | 19 | 2 | 12.5 | bumpleak/osh | mut |
21 | 16 | 6 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 8 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 8 | 10.9 | osh-native | mut+alloc |
23 | 14 | 10 | 11.1 | osh-native | mut+alloc+free |
23 | 22 | 1 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 17 | 8 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 8 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |