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 | 36 | 4 | 10 | 12.0 | 17.8 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 153 | 26 | 67 | 46.1 | 51.4 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.6 | 8.7 | 995,209 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 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 | 53 | 58 | 3.3 | zsh | - |
16 | 16 | 0 | 29.9 | bumpleak/osh | mut |
20 | 16 | 4 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 22 | 0 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 15 | 15 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 24 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
41 | 29 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 30 | 13 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 8 | 21.9 | _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.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
377 | 200 | 199 | 3.5 | zsh | - |
48 | 36 | 12 | 85.6 | bumpleak/osh | mut |
61 | 48 | 12 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
72 | 59 | 12 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 61 | 36 | 73.2 | osh-native | mut+alloc |
106 | 58 | 47 | 75.0 | osh-native | mut+alloc+free |
153 | 134 | 20 | 51.4 | osh-native | mut+alloc+free+gc |
161 | 140 | 20 | 52.1 | osh-native | mut+alloc+free+gc+exit |
139 | 87 | 51 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
228 | 180 | 48 | 73.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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 11.6 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 3 | 6 | 9.8 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 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 | 7 | 3 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
18 | 15 | 4 | 31.1 | bumpleak/osh | mut |
25 | 25 | 0 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.2 | osh-native | mut+alloc |
39 | 23 | 16 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 32 | 4 | 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 |
74 | 58 | 15 | 3.1 | bash | - |
168 | 104 | 64 | 53.9 | bumpleak/osh | mut |
180 | 112 | 68 | 54.5 | _bin/cxx-opt+bumproot/osh | mut |
193 | 132 | 60 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 129 | 81 | 47.1 | osh-native | mut+alloc |
217 | 157 | 60 | 48.9 | osh-native | mut+alloc+free |
182 | 125 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 144 | 36 | 8.5 | osh-native | mut+alloc+free+gc+exit |
231 | 151 | 80 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 128 | 80 | 9.9 | _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.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 11 | 7 | 3.4 | zsh | - |
20 | 8 | 12 | 12.7 | bumpleak/osh | mut |
19 | 15 | 4 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 2 | 10.9 | osh-native | mut+alloc |
23 | 14 | 10 | 11.0 | osh-native | mut+alloc+free |
22 | 17 | 6 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 7 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 22 | 3 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |