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 | 41 | 6 | 13 | 12.0 | 18.0 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 189 | 30 | 94 | 46.1 | 51.6 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.4 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.9 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 188 | 1 | 5 | 10.6 | 8.7 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.0 | 116,291 | 478 | 3 | 85,342 | 1 | 42,671 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
107 | 47 | 68 | 3.4 | zsh | - |
17 | 17 | 0 | 28.8 | bumpleak/osh | mut |
24 | 16 | 8 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 11 | 19 | 25.2 | osh-native | mut+alloc |
33 | 29 | 4 | 25.6 | osh-native | mut+alloc+free |
41 | 26 | 15 | 18.0 | osh-native | mut+alloc+free+gc |
43 | 39 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
45 | 28 | 16 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
60 | 44 | 16 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
382 | 229 | 174 | 3.7 | zsh | - |
49 | 36 | 12 | 85.6 | bumpleak/osh | mut |
60 | 56 | 4 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
72 | 68 | 4 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
107 | 78 | 29 | 73.6 | osh-native | mut+alloc |
109 | 78 | 31 | 75.4 | osh-native | mut+alloc+free |
189 | 173 | 16 | 51.6 | osh-native | mut+alloc+free+gc |
189 | 168 | 20 | 50.7 | osh-native | mut+alloc+free+gc+exit |
142 | 99 | 43 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
276 | 228 | 48 | 73.3 | _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 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
7 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc |
9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
10 | 7 | 3 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 7 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 6 | 6 | 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 | - |
30 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
20 | 12 | 8 | 31.6 | bumpleak/osh | mut |
27 | 23 | 4 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 22 | 15 | 26.5 | osh-native | mut+alloc |
39 | 31 | 8 | 26.7 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
30 | 26 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 0 | 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 | 65 | 8 | 3.3 | bash | - |
170 | 115 | 55 | 55.6 | bumpleak/osh | mut |
182 | 130 | 53 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
196 | 136 | 60 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
218 | 103 | 115 | 47.1 | osh-native | mut+alloc |
227 | 155 | 72 | 48.8 | osh-native | mut+alloc+free |
188 | 156 | 32 | 8.7 | osh-native | mut+alloc+free+gc |
186 | 143 | 44 | 8.7 | osh-native | mut+alloc+free+gc+exit |
236 | 160 | 76 | 62.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 181 | 52 | 10.0 | _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 | 10 | 0 | 3.4 | dash | - |
20 | 12 | 9 | 4.5 | bash | - |
19 | 9 | 10 | 3.5 | zsh | - |
21 | 12 | 9 | 12.4 | bumpleak/osh | mut |
22 | 14 | 6 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 9 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 9 | 15 | 11.0 | osh-native | mut+alloc |
24 | 16 | 9 | 11.1 | osh-native | mut+alloc+free |
24 | 12 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
26 | 18 | 8 | 8.7 | osh-native | mut+alloc+free+gc+exit |
26 | 12 | 15 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 22 | 5 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |