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 | 61 | 46.1 | 51.7 | 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 | 7.6 | 584,138 | 31,810 | 12 | 50,000 | 0 | 2,824 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.6 | 8.8 | 995,215 | 27,376 | 21 | 50,000 | 0 | 3,819 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 63 | 48 | 3.4 | zsh | - |
16 | 16 | 0 | 28.7 | bumpleak/osh | mut |
20 | 8 | 11 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 11 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 15 | 15 | 24.9 | osh-native | mut+alloc |
31 | 27 | 4 | 25.7 | osh-native | mut+alloc+free |
35 | 35 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 17.8 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 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.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
377 | 238 | 161 | 3.5 | zsh | - |
49 | 30 | 19 | 85.6 | bumpleak/osh | mut |
60 | 48 | 12 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.4 | osh-native | mut+alloc |
105 | 68 | 36 | 75.3 | osh-native | mut+alloc+free |
147 | 135 | 12 | 51.7 | osh-native | mut+alloc+free+gc |
151 | 111 | 40 | 52.2 | osh-native | mut+alloc+free+gc+exit |
139 | 79 | 60 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 174 | 36 | 72.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.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
6 | 0 | 6 | 11.3 | bumpleak/osh | mut |
7 | 3 | 3 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 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 | 3.0 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
20 | 20 | 0 | 31.2 | bumpleak/osh | mut |
26 | 22 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.3 | osh-native | mut+alloc |
39 | 31 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 20 | 8 | 7.6 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 45 | 8 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 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 | 103 | 64 | 55.4 | bumpleak/osh | mut |
179 | 111 | 68 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
191 | 103 | 88 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 135 | 76 | 47.1 | osh-native | mut+alloc |
219 | 155 | 64 | 48.9 | osh-native | mut+alloc+free |
182 | 129 | 53 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 170 | 61 | 62.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 150 | 59 | 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 | 14 | 6 | 4.5 | bash | - |
18 | 6 | 12 | 3.5 | zsh | - |
19 | 17 | 1 | 13.0 | bumpleak/osh | mut |
20 | 8 | 12 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 8 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 5 | 10.9 | osh-native | mut+alloc |
23 | 13 | 10 | 11.0 | osh-native | mut+alloc+free |
23 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 14 | 12 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 7 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |