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 | 18.0 | 476,682 | 1,282 | 6 | 408,752 | 5 | 204,376 | osh-native |
parse.configure-coreutils | 147 | 24 | 60 | 46.1 | 51.6 | 1,653,270 | 4,764 | 12 | 1,069,118 | 6 | 798,640 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,873 | 180 | 2 | 75,094 | 1 | 37,547 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,138 | 31,810 | 12 | 50,000 | 0 | 2,824 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.5 | 995,215 | 27,376 | 21 | 50,000 | 0 | 3,819 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,282 | 478 | 3 | 85,330 | 1 | 42,665 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 59 | 52 | 3.4 | zsh | - |
16 | 8 | 8 | 27.8 | bumpleak/osh | mut |
19 | 19 | 0 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 21 | 0 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 22 | 9 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
35 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 41 | 7 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
375 | 207 | 189 | 3.5 | zsh | - |
50 | 41 | 8 | 84.3 | bumpleak/osh | mut |
59 | 51 | 8 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
69 | 53 | 15 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 57 | 40 | 73.2 | osh-native | mut+alloc |
105 | 80 | 24 | 75.3 | osh-native | mut+alloc+free |
147 | 139 | 8 | 51.6 | osh-native | mut+alloc+free+gc |
156 | 116 | 40 | 52.1 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 184 | 28 | 72.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 | 0 | 2 | 1.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 12.3 | bumpleak/osh | mut |
7 | 0 | 7 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 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 | 2.9 | bash | - |
23 | 19 | 5 | 3.1 | zsh | - |
20 | 15 | 4 | 32.5 | bumpleak/osh | mut |
25 | 21 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
27 | 19 | 8 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
38 | 22 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 31 | 23 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 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 | 69 | 4 | 3.1 | bash | - |
168 | 96 | 72 | 53.8 | bumpleak/osh | mut |
177 | 141 | 36 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
192 | 112 | 80 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 140 | 68 | 47.1 | osh-native | mut+alloc |
216 | 168 | 48 | 48.9 | osh-native | mut+alloc+free |
181 | 110 | 71 | 8.5 | osh-native | mut+alloc+free+gc |
180 | 116 | 64 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 160 | 72 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 155 | 52 | 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 | - |
19 | 12 | 8 | 4.5 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
18 | 11 | 8 | 11.5 | bumpleak/osh | mut |
20 | 17 | 4 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 6 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 10.9 | osh-native | mut+alloc |
22 | 14 | 9 | 10.9 | osh-native | mut+alloc+free |
22 | 20 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 21 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |