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 | 36 | 4 | 10 | 12.0 | 18.0 | 476,699 | 1,282 | 6 | 408,772 | 5 | 204,386 | osh-native |
parse.configure-coreutils | 144 | 23 | 58 | 44.6 | 49.9 | 1,653,287 | 4,764 | 12 | 1,030,656 | 6 | 769,412 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,890 | 180 | 2 | 75,114 | 1 | 37,557 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.7 | 584,155 | 31,810 | 12 | 50,000 | 0 | 2,833 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.3 | 8.7 | 995,232 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,299 | 478 | 3 | 85,350 | 1 | 42,675 | 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.0 | bash | - |
105 | 65 | 46 | 3.4 | zsh | - |
16 | 4 | 12 | 29.5 | bumpleak/osh | mut |
19 | 19 | 0 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.0 | osh-native | mut+alloc |
31 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 35 | 9 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 50 | 0 | 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.4 | dash | - |
77 | 70 | 8 | 3.1 | bash | - |
379 | 223 | 176 | 3.5 | zsh | - |
49 | 36 | 12 | 85.4 | bumpleak/osh | mut |
60 | 56 | 4 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 53 | 16 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 53 | 45 | 73.3 | osh-native | mut+alloc |
107 | 63 | 43 | 75.4 | osh-native | mut+alloc+free |
144 | 120 | 24 | 49.9 | osh-native | mut+alloc+free+gc |
148 | 112 | 36 | 50.4 | osh-native | mut+alloc+free+gc+exit |
141 | 88 | 52 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 177 | 24 | 67.1 | _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.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 6 | 0 | 10.8 | bumpleak/osh | mut |
7 | 3 | 3 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _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.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
23 | 19 | 5 | 3.3 | zsh | - |
20 | 0 | 20 | 32.6 | bumpleak/osh | mut |
26 | 26 | 0 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.1 | osh-native | mut+alloc |
38 | 29 | 8 | 26.5 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 31 | 23 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 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 | 73 | 0 | 3.1 | bash | - |
171 | 111 | 60 | 55.7 | bumpleak/osh | mut |
181 | 122 | 59 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
192 | 132 | 60 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 136 | 80 | 46.9 | osh-native | mut+alloc |
216 | 156 | 60 | 48.7 | osh-native | mut+alloc+free |
180 | 136 | 44 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 130 | 51 | 8.5 | osh-native | mut+alloc+free+gc+exit |
233 | 173 | 60 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 167 | 40 | 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 | 7 | 3 | 3.4 | dash | - |
20 | 16 | 4 | 4.5 | bash | - |
17 | 5 | 13 | 3.4 | zsh | - |
19 | 18 | 2 | 12.3 | bumpleak/osh | mut |
19 | 11 | 9 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 6 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 8 | 10.7 | osh-native | mut+alloc |
22 | 10 | 12 | 11.0 | osh-native | mut+alloc+free |
22 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 12 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 16 | 10 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |