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 | 37 | 4 | 10 | 12.0 | 18.0 | 476,694 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 171 | 28 | 80 | 46.1 | 51.7 | 1,653,282 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.4 | 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 | 182 | 0 | 4 | 10.3 | 8.7 | 995,227 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 23 | 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 | 3 | 3 | 1.4 | dash | - |
24 | 23 | 0 | 3.1 | bash | - |
107 | 61 | 53 | 3.4 | zsh | - |
17 | 14 | 3 | 28.0 | bumpleak/osh | mut |
20 | 12 | 8 | 30.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 25.2 | osh-native | mut+alloc |
32 | 12 | 20 | 25.6 | osh-native | mut+alloc+free |
37 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 20 | 24 | 33.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 44 | 4 | 22.3 | _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 | - |
78 | 74 | 4 | 3.3 | bash | - |
382 | 239 | 166 | 3.5 | zsh | - |
50 | 42 | 8 | 84.6 | bumpleak/osh | mut |
59 | 55 | 4 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
79 | 67 | 12 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 67 | 32 | 73.3 | osh-native | mut+alloc |
108 | 72 | 36 | 75.3 | osh-native | mut+alloc+free |
171 | 150 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
168 | 156 | 12 | 50.6 | osh-native | mut+alloc+free+gc+exit |
142 | 94 | 47 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 199 | 28 | 72.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 | 0 | 2 | 1.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
7 | 3 | 3 | 11.6 | bumpleak/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc |
10 | 5 | 5 | 10.0 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 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 | - |
28 | 24 | 4 | 3.0 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
20 | 16 | 4 | 32.5 | bumpleak/osh | mut |
26 | 26 | 0 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 33 | 4 | 26.2 | osh-native | mut+alloc |
39 | 30 | 9 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 15 | 36.2 | _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 |
74 | 73 | 0 | 3.1 | bash | - |
169 | 118 | 51 | 54.7 | bumpleak/osh | mut |
178 | 131 | 47 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
197 | 110 | 86 | 55.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 129 | 81 | 47.0 | osh-native | mut+alloc |
220 | 128 | 92 | 48.5 | osh-native | mut+alloc+free |
182 | 129 | 53 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 140 | 40 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 178 | 55 | 62.4 | _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 | 10 | 0 | 3.4 | dash | - |
20 | 19 | 1 | 4.5 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
21 | 10 | 10 | 12.4 | bumpleak/osh | mut |
20 | 12 | 9 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 10.6 | osh-native | mut+alloc |
23 | 20 | 3 | 11.0 | osh-native | mut+alloc+free |
23 | 11 | 13 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 23 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 8 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 18 | 8 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |