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 | 17.6 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 165 | 26 | 76 | 46.1 | 51.3 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.7 | 995,209 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,276 | 478 | 3 | 85,322 | 1 | 42,661 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 65 | 45 | 3.4 | zsh | - |
16 | 12 | 4 | 28.8 | bumpleak/osh | mut |
20 | 16 | 4 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
35 | 28 | 8 | 17.6 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 39 | 12 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
379 | 207 | 193 | 3.5 | zsh | - |
50 | 38 | 11 | 85.1 | bumpleak/osh | mut |
61 | 53 | 8 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
71 | 51 | 20 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 69 | 28 | 73.4 | osh-native | mut+alloc |
106 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
165 | 128 | 36 | 51.3 | osh-native | mut+alloc+free+gc |
169 | 144 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
141 | 98 | 43 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 214 | 20 | 70.8 | _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.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 10.4 | bumpleak/osh | mut |
7 | 4 | 4 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 0 | 12 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 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 | 3.0 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 11 | 8 | 31.3 | bumpleak/osh | mut |
26 | 17 | 8 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.3 | osh-native | mut+alloc |
38 | 30 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 23 | 31 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.3 | _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 | 73 | 0 | 3.1 | bash | - |
167 | 91 | 75 | 54.1 | bumpleak/osh | mut |
180 | 131 | 48 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
194 | 121 | 72 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 144 | 68 | 47.1 | osh-native | mut+alloc |
224 | 144 | 80 | 48.9 | osh-native | mut+alloc+free |
180 | 128 | 52 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 134 | 47 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 137 | 97 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 172 | 40 | 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 | 9 | 1 | 3.4 | dash | - |
19 | 13 | 7 | 4.3 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
19 | 12 | 7 | 11.9 | bumpleak/osh | mut |
21 | 16 | 6 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 3 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 14 | 9 | 11.0 | osh-native | mut+alloc |
23 | 10 | 13 | 10.9 | osh-native | mut+alloc+free |
23 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 19 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 7 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |