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 | 17.7 | 476,698 | 1,282 | 6 | 408,770 | 5 | 204,385 | osh-native |
parse.configure-coreutils | 176 | 29 | 86 | 44.6 | 50.0 | 1,653,286 | 4,764 | 12 | 1,030,654 | 6 | 769,411 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,889 | 180 | 2 | 75,112 | 1 | 37,556 | osh-native |
ex.compute-fib | 29 | 0 | 1 | 2.4 | 7.9 | 584,154 | 31,810 | 12 | 50,000 | 0 | 2,832 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.8 | 995,231 | 27,376 | 21 | 50,000 | 0 | 3,823 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,298 | 478 | 3 | 85,348 | 1 | 42,674 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.6 | dash | - |
24 | 19 | 4 | 2.9 | bash | - |
108 | 64 | 51 | 3.3 | zsh | - |
16 | 16 | 0 | 28.4 | bumpleak/osh | mut |
20 | 20 | 0 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 24.9 | osh-native | mut+alloc |
33 | 29 | 4 | 25.6 | osh-native | mut+alloc+free |
37 | 29 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
39 | 35 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 36 | 8 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
54 | 50 | 4 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
79 | 79 | 0 | 3.0 | bash | - |
383 | 232 | 173 | 3.4 | zsh | - |
50 | 41 | 8 | 85.2 | bumpleak/osh | mut |
60 | 44 | 16 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 84.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 35 | 73.6 | osh-native | mut+alloc |
107 | 67 | 40 | 75.1 | osh-native | mut+alloc+free |
176 | 159 | 16 | 50.0 | osh-native | mut+alloc+free+gc |
178 | 154 | 24 | 50.6 | osh-native | mut+alloc+free+gc+exit |
143 | 102 | 41 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
265 | 232 | 32 | 66.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 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
7 | 7 | 0 | 11.6 | bumpleak/osh | mut |
7 | 7 | 0 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 5 | 5 | 10.0 | osh-native | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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 |
11 | 11 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
20 | 10 | 10 | 31.9 | bumpleak/osh | mut |
26 | 22 | 4 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 7 | 26.3 | osh-native | mut+alloc |
39 | 23 | 15 | 26.5 | osh-native | mut+alloc+free |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 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 | 69 | 4 | 3.0 | bash | - |
167 | 95 | 71 | 54.3 | bumpleak/osh | mut |
181 | 112 | 68 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
195 | 135 | 59 | 55.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 112 | 100 | 47.0 | osh-native | mut+alloc |
218 | 127 | 91 | 48.6 | osh-native | mut+alloc+free |
181 | 122 | 59 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 117 | 65 | 8.7 | osh-native | mut+alloc+free+gc+exit |
236 | 156 | 80 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 155 | 56 | 10.1 | _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 | 7 | 3 | 3.5 | dash | - |
21 | 16 | 5 | 4.3 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
20 | 5 | 15 | 12.9 | bumpleak/osh | mut |
22 | 13 | 9 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 7 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 21 | 2 | 11.0 | osh-native | mut+alloc |
23 | 21 | 3 | 11.1 | osh-native | mut+alloc+free |
23 | 22 | 2 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 15 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 7 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 24 | 2 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |