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 | 33 | 3 | 9 | 12.0 | 17.6 | 476,689 | 1,282 | 6 | 408,626 | 5 | 204,313 | osh-native |
parse.configure-coreutils | 144 | 20 | 68 | 41.0 | 45.4 | 1,653,277 | 4,764 | 12 | 1,591,678 | 7 | 795,839 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,880 | 180 | 3 | 87,194 | 1 | 43,597 | osh-native |
ex.compute-fib | 23 | 0 | 1 | 2.6 | 7.6 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,764 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.6 | 8.3 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,289 | 478 | 3 | 85,210 | 1 | 42,605 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
104 | 72 | 38 | 3.5 | zsh | - |
16 | 8 | 8 | 29.0 | bumpleak/osh | mut |
17 | 16 | 0 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 16 | 4 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
27 | 15 | 12 | 24.6 | osh-native | mut+alloc |
29 | 24 | 4 | 25.2 | osh-native | mut+alloc+free |
33 | 18 | 14 | 17.6 | osh-native | mut+alloc+free+gc |
33 | 33 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
40 | 32 | 8 | 31.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 33 | 12 | 21.8 | _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 | 18 | 4 | 1.4 | dash | - |
78 | 77 | 0 | 3.3 | bash | - |
376 | 219 | 179 | 3.7 | zsh | - |
48 | 26 | 22 | 83.8 | bumpleak/osh | mut |
51 | 39 | 12 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
61 | 53 | 8 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
88 | 60 | 28 | 73.2 | osh-native | mut+alloc |
96 | 68 | 28 | 74.9 | osh-native | mut+alloc+free |
144 | 116 | 28 | 45.4 | osh-native | mut+alloc+free+gc |
147 | 127 | 20 | 45.8 | osh-native | mut+alloc+free+gc+exit |
128 | 100 | 28 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 185 | 16 | 60.6 | _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 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 12.3 | bumpleak/osh | mut |
6 | 3 | 3 | 10.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.0 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
11 | 0 | 11 | 11.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 8.8 | _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 | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 14 | 5 | 30.9 | bumpleak/osh | mut |
21 | 21 | 0 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 23 | 8 | 26.1 | osh-native | mut+alloc |
32 | 24 | 8 | 26.2 | osh-native | mut+alloc+free |
23 | 19 | 4 | 7.6 | osh-native | mut+alloc+free+gc |
24 | 23 | 0 | 7.3 | osh-native | mut+alloc+free+gc+exit |
47 | 38 | 8 | 35.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
31 | 31 | 0 | 9.1 | _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 | 68 | 4 | 3.1 | bash | - |
169 | 137 | 32 | 55.8 | bumpleak/osh | mut |
172 | 104 | 68 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
188 | 128 | 60 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
203 | 135 | 67 | 46.6 | osh-native | mut+alloc |
210 | 149 | 60 | 48.5 | osh-native | mut+alloc+free |
174 | 142 | 32 | 8.3 | osh-native | mut+alloc+free+gc |
175 | 123 | 52 | 8.4 | osh-native | mut+alloc+free+gc+exit |
223 | 123 | 99 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
200 | 152 | 48 | 9.8 | _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 | 8 | 2 | 3.5 | dash | - |
21 | 13 | 9 | 4.3 | bash | - |
18 | 9 | 9 | 3.5 | zsh | - |
20 | 18 | 2 | 12.1 | bumpleak/osh | mut |
19 | 17 | 2 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
21 | 20 | 1 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 13 | 7 | 10.5 | osh-native | mut+alloc |
22 | 17 | 6 | 10.7 | osh-native | mut+alloc+free |
21 | 15 | 7 | 8.5 | osh-native | mut+alloc+free+gc |
22 | 13 | 10 | 8.5 | osh-native | mut+alloc+free+gc+exit |
24 | 19 | 5 | 12.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |