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 | 14 | 12.0 | 18.0 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 165 | 25 | 77 | 46.1 | 51.5 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.6 | 8.8 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 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.4 | dash | - |
23 | 20 | 4 | 3.0 | bash | - |
105 | 60 | 51 | 3.4 | zsh | - |
16 | 8 | 8 | 27.9 | bumpleak/osh | mut |
19 | 14 | 5 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 13 | 17 | 25.2 | osh-native | mut+alloc |
32 | 14 | 18 | 25.7 | osh-native | mut+alloc+free |
41 | 40 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 19 | 23 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.4 | _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 | - |
77 | 73 | 4 | 3.1 | bash | - |
378 | 188 | 211 | 3.5 | zsh | - |
48 | 36 | 12 | 84.2 | bumpleak/osh | mut |
61 | 52 | 8 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 23 | 47 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 31 | 73.4 | osh-native | mut+alloc |
107 | 79 | 28 | 75.3 | osh-native | mut+alloc+free |
165 | 145 | 20 | 51.5 | osh-native | mut+alloc+free+gc |
165 | 133 | 32 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 97.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 194 | 40 | 71.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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
7 | 0 | 7 | 11.6 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 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.3 | dash | - |
29 | 24 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
19 | 16 | 4 | 32.7 | bumpleak/osh | mut |
25 | 22 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.2 | osh-native | mut+alloc |
38 | 34 | 4 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 30 | 23 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 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 |
74 | 74 | 0 | 3.1 | bash | - |
167 | 91 | 76 | 54.1 | bumpleak/osh | mut |
181 | 137 | 44 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 119 | 75 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 141 | 72 | 47.2 | osh-native | mut+alloc |
221 | 136 | 84 | 48.8 | osh-native | mut+alloc+free |
183 | 139 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 131 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 168 | 64 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 140 | 68 | 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 | 5 | 5 | 3.4 | dash | - |
19 | 16 | 4 | 4.5 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
18 | 12 | 6 | 11.5 | bumpleak/osh | mut |
21 | 19 | 2 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 10 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 11 | 11 | 10.9 | osh-native | mut+alloc |
22 | 14 | 9 | 11.0 | osh-native | mut+alloc+free |
22 | 21 | 1 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 19 | 6 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 16 | 9 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |