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,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 162 | 25 | 74 | 46.1 | 51.7 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.6 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.7 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,291 | 478 | 3 | 85,342 | 1 | 42,671 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
103 | 49 | 59 | 3.4 | zsh | - |
17 | 12 | 4 | 28.4 | bumpleak/osh | mut |
19 | 14 | 5 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 25.0 | osh-native | mut+alloc |
32 | 12 | 20 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 15 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 37 | 11 | 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.4 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
375 | 222 | 173 | 3.5 | zsh | - |
48 | 33 | 15 | 85.8 | bumpleak/osh | mut |
60 | 52 | 8 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 45 | 25 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 36 | 73.3 | osh-native | mut+alloc |
106 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
162 | 134 | 28 | 51.7 | osh-native | mut+alloc+free+gc |
164 | 144 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
137 | 80 | 56 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 171 | 44 | 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.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 10.5 | bumpleak/osh | mut |
6 | 3 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _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 |
10 | 10 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 23 | 0 | 3.4 | zsh | - |
18 | 18 | 0 | 32.6 | bumpleak/osh | mut |
25 | 25 | 0 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
32 | 24 | 8 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 36 | 0 | 26.2 | osh-native | mut+alloc |
38 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.6 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 19 | 35.9 | _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 | 68 | 4 | 3.0 | bash | - |
168 | 128 | 40 | 54.1 | bumpleak/osh | mut |
180 | 84 | 96 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
192 | 126 | 65 | 55.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 148 | 64 | 47.1 | osh-native | mut+alloc |
217 | 120 | 96 | 48.9 | osh-native | mut+alloc+free |
181 | 133 | 48 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 157 | 24 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 136 | 96 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 158 | 53 | 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 | 8 | 2 | 3.5 | dash | - |
19 | 14 | 6 | 4.3 | bash | - |
18 | 12 | 7 | 3.4 | zsh | - |
18 | 11 | 7 | 11.3 | bumpleak/osh | mut |
20 | 14 | 6 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 11 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 14 | 8 | 11.0 | osh-native | mut+alloc |
23 | 14 | 9 | 11.0 | osh-native | mut+alloc+free |
23 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 21 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 6 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 7 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |