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 | 9 | 12.0 | 17.8 | 476,682 | 1,282 | 6 | 408,752 | 5 | 204,376 | osh-native |
parse.configure-coreutils | 164 | 25 | 75 | 46.1 | 51.4 | 1,653,270 | 4,764 | 12 | 1,069,118 | 6 | 798,640 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,873 | 180 | 2 | 75,094 | 1 | 37,547 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,138 | 31,810 | 12 | 50,000 | 0 | 2,824 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.6 | 8.7 | 995,215 | 27,376 | 21 | 50,000 | 0 | 3,819 | osh-native |
ex.abuild-print-help | 22 | 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 |
7 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
106 | 64 | 49 | 3.5 | zsh | - |
16 | 12 | 4 | 28.6 | bumpleak/osh | mut |
20 | 8 | 12 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 28.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.3 | osh-native | mut+alloc+free |
36 | 27 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
39 | 39 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 30 | 13 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 39 | 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 | 17 | 4 | 1.6 | dash | - |
78 | 73 | 4 | 3.3 | bash | - |
388 | 214 | 198 | 3.4 | zsh | - |
50 | 42 | 8 | 85.3 | bumpleak/osh | mut |
61 | 53 | 8 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 53 | 16 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 55 | 43 | 73.3 | osh-native | mut+alloc |
108 | 76 | 32 | 75.3 | osh-native | mut+alloc+free |
164 | 136 | 28 | 51.4 | osh-native | mut+alloc+free+gc |
174 | 154 | 20 | 52.2 | osh-native | mut+alloc+free+gc+exit |
141 | 88 | 52 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
238 | 202 | 36 | 72.4 | _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 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 10.8 | bumpleak/osh | mut |
7 | 7 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.2 | _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 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 0 | 19 | 31.4 | bumpleak/osh | mut |
26 | 15 | 11 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.5 | osh-native | mut+alloc |
39 | 30 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
56 | 40 | 16 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 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 | 64 | 8 | 3.0 | bash | - |
167 | 99 | 68 | 54.5 | bumpleak/osh | mut |
179 | 114 | 65 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
194 | 129 | 64 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 119 | 91 | 47.1 | osh-native | mut+alloc |
218 | 167 | 52 | 48.8 | osh-native | mut+alloc+free |
182 | 142 | 39 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 128 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 143 | 87 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 136 | 76 | 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.5 | dash | - |
20 | 19 | 2 | 4.3 | bash | - |
18 | 16 | 3 | 3.5 | zsh | - |
21 | 12 | 9 | 12.5 | bumpleak/osh | mut |
20 | 15 | 6 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 8 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 10.9 | osh-native | mut+alloc |
23 | 17 | 7 | 11.1 | osh-native | mut+alloc+free |
22 | 12 | 11 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 8.7 | osh-native | mut+alloc+free+gc+exit |
26 | 18 | 8 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 21 | 6 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |