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 | 17.8 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 141 | 21 | 56 | 44.6 | 49.8 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.9 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.3 | 8.7 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.9 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
103 | 58 | 52 | 3.5 | zsh | - |
16 | 12 | 4 | 28.7 | bumpleak/osh | mut |
19 | 15 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 7 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 25.2 | osh-native | mut+alloc |
31 | 22 | 9 | 25.6 | osh-native | mut+alloc+free |
35 | 21 | 13 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 23 | 19 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 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 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
374 | 224 | 172 | 3.5 | zsh | - |
48 | 32 | 16 | 85.3 | bumpleak/osh | mut |
61 | 52 | 8 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 77 | 20 | 73.3 | osh-native | mut+alloc |
104 | 76 | 28 | 75.1 | osh-native | mut+alloc+free |
141 | 121 | 20 | 49.8 | osh-native | mut+alloc+free+gc |
146 | 129 | 16 | 50.7 | osh-native | mut+alloc+free+gc+exit |
138 | 86 | 51 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 183 | 20 | 67.2 | _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 | 3 | 3 | 10.5 | bumpleak/osh | mut |
6 | 0 | 6 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 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.3 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.1 | zsh | - |
20 | 20 | 0 | 32.5 | bumpleak/osh | mut |
26 | 26 | 0 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.1 | osh-native | mut+alloc |
38 | 26 | 11 | 26.3 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 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 |
72 | 72 | 0 | 3.1 | bash | - |
167 | 115 | 52 | 55.6 | bumpleak/osh | mut |
181 | 116 | 64 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
192 | 132 | 60 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 156 | 52 | 47.1 | osh-native | mut+alloc |
215 | 129 | 85 | 48.7 | osh-native | mut+alloc+free |
179 | 123 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
178 | 121 | 57 | 8.5 | osh-native | mut+alloc+free+gc+exit |
228 | 144 | 84 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 158 | 49 | 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 |
9 | 8 | 1 | 3.4 | dash | - |
19 | 18 | 2 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
19 | 17 | 2 | 12.5 | bumpleak/osh | mut |
19 | 11 | 8 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 16 | 5 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 11 | 10.9 | osh-native | mut+alloc |
21 | 19 | 3 | 11.1 | osh-native | mut+alloc+free |
21 | 15 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 17 | 6 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 10 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 22 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |