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 | 165 | 27 | 76 | 46.1 | 51.7 | 1,653,282 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,885 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,150 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.3 | 8.4 | 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 |
7 | 7 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
105 | 63 | 48 | 3.3 | zsh | - |
16 | 8 | 8 | 29.3 | bumpleak/osh | mut |
20 | 16 | 4 | 28.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.2 | osh-native | mut+alloc |
32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
37 | 15 | 22 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 31 | 12 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 24 | 24 | 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 | 17 | 4 | 1.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
378 | 206 | 192 | 3.5 | zsh | - |
50 | 42 | 8 | 85.1 | bumpleak/osh | mut |
59 | 47 | 12 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 59 | 40 | 73.4 | osh-native | mut+alloc |
106 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
165 | 128 | 36 | 51.7 | osh-native | mut+alloc+free+gc |
162 | 143 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
141 | 120 | 20 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
222 | 193 | 28 | 73.3 | _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 | 3 | 3 | 3.0 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 0 | 6 | 10.4 | bumpleak/osh | mut |
6 | 3 | 3 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _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.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 30.8 | bumpleak/osh | mut |
26 | 21 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.2 | osh-native | mut+alloc |
39 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 37 | 17 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 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 | 65 | 8 | 3.1 | bash | - |
167 | 139 | 28 | 55.6 | bumpleak/osh | mut |
180 | 124 | 56 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
196 | 128 | 68 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 140 | 72 | 46.9 | osh-native | mut+alloc |
220 | 144 | 76 | 48.6 | osh-native | mut+alloc+free |
180 | 116 | 64 | 8.4 | osh-native | mut+alloc+free+gc |
181 | 100 | 80 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 149 | 84 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 140 | 68 | 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.4 | dash | - |
20 | 19 | 1 | 4.5 | bash | - |
18 | 10 | 8 | 3.4 | zsh | - |
18 | 13 | 5 | 11.5 | bumpleak/osh | mut |
19 | 12 | 7 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 10.6 | osh-native | mut+alloc |
23 | 11 | 12 | 11.3 | osh-native | mut+alloc+free |
23 | 6 | 17 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 21 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 14 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |