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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 147 | 23 | 60 | 46.1 | 51.4 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.9 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.7 | 995,209 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,276 | 478 | 3 | 85,322 | 1 | 42,661 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
104 | 57 | 54 | 3.4 | zsh | - |
16 | 12 | 4 | 28.0 | bumpleak/osh | mut |
19 | 12 | 8 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 24.9 | osh-native | mut+alloc |
31 | 26 | 4 | 25.6 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 38 | 4 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 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 | 22 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
375 | 212 | 183 | 3.5 | zsh | - |
50 | 46 | 4 | 84.5 | bumpleak/osh | mut |
60 | 48 | 12 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
71 | 51 | 20 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 70 | 27 | 73.4 | osh-native | mut+alloc |
105 | 70 | 35 | 75.1 | osh-native | mut+alloc+free |
147 | 111 | 36 | 51.4 | osh-native | mut+alloc+free+gc |
152 | 120 | 32 | 52.1 | osh-native | mut+alloc+free+gc+exit |
138 | 98 | 39 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 182 | 28 | 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.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 7 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 12.3 | bumpleak/osh | mut |
7 | 3 | 3 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 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.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 |
10 | 10 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
19 | 18 | 0 | 30.9 | bumpleak/osh | mut |
25 | 21 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.5 | osh-native | mut+alloc |
37 | 19 | 19 | 26.6 | osh-native | mut+alloc+free |
29 | 22 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
27 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 30 | 23 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 29 | 7 | 9.3 | _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 |
72 | 68 | 4 | 3.1 | bash | - |
169 | 113 | 56 | 55.1 | bumpleak/osh | mut |
179 | 111 | 68 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 127 | 67 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 113 | 97 | 46.9 | osh-native | mut+alloc |
216 | 140 | 76 | 48.9 | osh-native | mut+alloc+free |
181 | 136 | 44 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 150 | 32 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 141 | 89 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 165 | 44 | 10.1 | _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.5 | dash | - |
19 | 19 | 1 | 4.3 | bash | - |
17 | 11 | 7 | 3.5 | zsh | - |
18 | 11 | 8 | 11.8 | bumpleak/osh | mut |
21 | 12 | 10 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 9 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 2 | 10.7 | osh-native | mut+alloc |
22 | 13 | 9 | 11.0 | osh-native | mut+alloc+free |
22 | 21 | 2 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 14 | 11 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 9 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |