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 | 32 | 3 | 9 | 12.0 | 17.6 | 476,689 | 1,282 | 6 | 408,626 | 5 | 204,313 | osh-native |
parse.configure-coreutils | 146 | 21 | 68 | 41.0 | 45.5 | 1,653,277 | 4,764 | 12 | 1,591,678 | 7 | 795,839 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,880 | 180 | 3 | 87,194 | 1 | 43,597 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.6 | 7.5 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,764 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.6 | 8.3 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,289 | 478 | 3 | 85,210 | 1 | 42,605 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
118 | 60 | 65 | 3.4 | zsh | - |
16 | 16 | 0 | 29.3 | bumpleak/osh | mut |
17 | 10 | 7 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 19 | 0 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
27 | 26 | 0 | 24.8 | osh-native | mut+alloc |
28 | 12 | 16 | 25.2 | osh-native | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native | mut+alloc+free+gc |
33 | 16 | 16 | 17.7 | osh-native | mut+alloc+free+gc+exit |
40 | 16 | 24 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
44 | 40 | 4 | 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 |
21 | 18 | 4 | 1.6 | dash | - |
79 | 79 | 0 | 3.3 | bash | - |
378 | 193 | 206 | 3.5 | zsh | - |
47 | 39 | 8 | 84.6 | bumpleak/osh | mut |
51 | 47 | 4 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
61 | 53 | 8 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
88 | 44 | 44 | 73.1 | osh-native | mut+alloc |
95 | 67 | 28 | 74.9 | osh-native | mut+alloc+free |
146 | 122 | 24 | 45.5 | osh-native | mut+alloc+free+gc |
146 | 130 | 16 | 45.6 | osh-native | mut+alloc+free+gc+exit |
128 | 80 | 48 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 169 | 36 | 60.7 | _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.8 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
5 | 0 | 5 | 11.9 | bumpleak/osh | mut |
6 | 6 | 0 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.6 | osh-native | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native | mut+alloc+free |
9 | 0 | 9 | 7.9 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.0 | osh-native | mut+alloc+free+gc+exit |
11 | 7 | 4 | 10.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 8.8 | _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 | 10 | 0 | 1.6 | dash | - |
29 | 16 | 12 | 2.8 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 15 | 4 | 31.9 | bumpleak/osh | mut |
21 | 20 | 0 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 26 | 4 | 26.0 | osh-native | mut+alloc |
32 | 20 | 12 | 26.3 | osh-native | mut+alloc+free |
23 | 22 | 0 | 7.5 | osh-native | mut+alloc+free+gc |
23 | 19 | 4 | 7.6 | osh-native | mut+alloc+free+gc+exit |
48 | 32 | 16 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
32 | 27 | 4 | 9.1 | _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 | 52 | 20 | 3.0 | bash | - |
169 | 102 | 67 | 54.8 | bumpleak/osh | mut |
173 | 114 | 59 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
189 | 126 | 63 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
203 | 115 | 88 | 46.7 | osh-native | mut+alloc |
209 | 133 | 76 | 48.5 | osh-native | mut+alloc+free |
175 | 127 | 48 | 8.3 | osh-native | mut+alloc+free+gc |
174 | 115 | 59 | 8.3 | osh-native | mut+alloc+free+gc+exit |
226 | 142 | 83 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
201 | 109 | 92 | 9.8 | _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 |
9 | 8 | 2 | 3.4 | dash | - |
20 | 13 | 7 | 4.5 | bash | - |
18 | 12 | 6 | 3.5 | zsh | - |
20 | 8 | 12 | 12.1 | bumpleak/osh | mut |
20 | 16 | 4 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
19 | 11 | 8 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 11 | 10 | 10.5 | osh-native | mut+alloc |
22 | 13 | 9 | 10.7 | osh-native | mut+alloc+free |
21 | 17 | 5 | 8.7 | osh-native | mut+alloc+free+gc |
22 | 13 | 10 | 8.5 | osh-native | mut+alloc+free+gc+exit |
24 | 17 | 7 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 15 | 10 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |