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 | 17.8 | 476,694 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 159 | 26 | 71 | 46.1 | 51.6 | 1,653,282 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,885 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.9 | 584,150 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.5 | 995,227 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,294 | 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 | 23 | 0 | 3.0 | bash | - |
105 | 57 | 54 | 3.4 | zsh | - |
17 | 10 | 7 | 28.0 | bumpleak/osh | mut |
20 | 12 | 8 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.0 | osh-native | mut+alloc |
31 | 13 | 18 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 16 | 27 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 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.6 | dash | - |
79 | 79 | 0 | 3.1 | bash | - |
379 | 201 | 198 | 3.5 | zsh | - |
49 | 32 | 16 | 85.1 | bumpleak/osh | mut |
60 | 40 | 20 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 55 | 16 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 74 | 23 | 73.4 | osh-native | mut+alloc |
109 | 84 | 24 | 75.1 | osh-native | mut+alloc+free |
159 | 127 | 32 | 51.6 | osh-native | mut+alloc+free+gc |
156 | 128 | 28 | 50.4 | osh-native | mut+alloc+free+gc+exit |
139 | 103 | 36 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
224 | 184 | 40 | 73.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 | 3.0 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 3 | 3 | 11.1 | bumpleak/osh | mut |
6 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 10.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 11 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 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.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
18 | 14 | 5 | 30.8 | bumpleak/osh | mut |
26 | 21 | 4 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 11 | 26.2 | osh-native | mut+alloc |
38 | 30 | 8 | 26.5 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
65 | 56 | 8 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _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 | 72 | 0 | 3.1 | bash | - |
169 | 108 | 60 | 54.3 | bumpleak/osh | mut |
178 | 138 | 41 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
191 | 115 | 75 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 121 | 89 | 46.9 | osh-native | mut+alloc |
216 | 120 | 96 | 48.7 | osh-native | mut+alloc+free |
181 | 120 | 60 | 8.5 | osh-native | mut+alloc+free+gc |
181 | 112 | 68 | 8.8 | osh-native | mut+alloc+free+gc+exit |
230 | 153 | 77 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 149 | 60 | 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 | 9 | 1 | 3.5 | dash | - |
19 | 18 | 2 | 4.5 | bash | - |
18 | 11 | 8 | 3.4 | zsh | - |
18 | 16 | 3 | 11.5 | bumpleak/osh | mut |
21 | 11 | 10 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 14 | 7 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 18 | 3 | 11.0 | osh-native | mut+alloc |
22 | 14 | 8 | 11.1 | osh-native | mut+alloc+free |
22 | 15 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 8.8 | osh-native | mut+alloc+free+gc+exit |
24 | 19 | 5 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |