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 | 3 | 10 | 12.0 | 17.8 | 476,682 | 1,282 | 6 | 408,752 | 5 | 204,376 | osh-native |
parse.configure-coreutils | 159 | 26 | 71 | 46.1 | 51.6 | 1,653,270 | 4,764 | 12 | 1,069,118 | 6 | 798,640 | osh-native |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.7 | 101,873 | 180 | 2 | 75,094 | 1 | 37,547 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 8.0 | 584,138 | 31,810 | 12 | 50,000 | 0 | 2,824 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.8 | 995,215 | 27,376 | 21 | 50,000 | 0 | 3,819 | osh-native |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 8.9 | 116,282 | 478 | 3 | 85,330 | 1 | 42,665 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
24 | 24 | 0 | 3.1 | bash | - |
105 | 68 | 44 | 3.3 | zsh | - |
17 | 8 | 8 | 29.3 | bumpleak/osh | mut |
20 | 16 | 4 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 4 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 27 | 16 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 38 | 13 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 73 | 4 | 3.3 | bash | - |
377 | 193 | 206 | 3.5 | zsh | - |
49 | 36 | 12 | 85.2 | bumpleak/osh | mut |
59 | 43 | 16 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
78 | 61 | 16 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 77 | 20 | 73.4 | osh-native | mut+alloc |
106 | 74 | 31 | 75.4 | osh-native | mut+alloc+free |
159 | 139 | 20 | 51.6 | osh-native | mut+alloc+free+gc |
167 | 139 | 28 | 52.2 | osh-native | mut+alloc+free+gc+exit |
140 | 92 | 48 | 97.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
240 | 216 | 24 | 72.0 | _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 | 0 | 7 | 3.4 | zsh | - |
6 | 6 | 0 | 10.8 | bumpleak/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
10 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
10 | 3 | 6 | 8.5 | 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 |
11 | 7 | 3 | 1.4 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
24 | 8 | 16 | 3.4 | zsh | - |
20 | 12 | 8 | 31.7 | bumpleak/osh | mut |
26 | 26 | 0 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.5 | osh-native | mut+alloc |
39 | 31 | 8 | 26.9 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 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 | 69 | 4 | 3.1 | bash | - |
167 | 110 | 57 | 55.7 | bumpleak/osh | mut |
178 | 115 | 63 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
194 | 141 | 53 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 120 | 88 | 47.1 | osh-native | mut+alloc |
219 | 131 | 87 | 48.9 | osh-native | mut+alloc+free |
181 | 148 | 32 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 132 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
230 | 145 | 85 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 154 | 53 | 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 | 8 | 2 | 3.4 | dash | - |
20 | 17 | 3 | 4.3 | bash | - |
18 | 12 | 7 | 3.5 | zsh | - |
19 | 17 | 2 | 11.3 | bumpleak/osh | mut |
20 | 10 | 10 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 8 | 16 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 14 | 9 | 10.7 | osh-native | mut+alloc |
24 | 16 | 8 | 10.9 | osh-native | mut+alloc+free |
24 | 14 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 15 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 22 | 4 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 21 | 6 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |