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 | 38 | 4 | 10 | 12.0 | 17.8 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 149 | 24 | 62 | 46.1 | 51.2 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 29 | 0 | 1 | 3.1 | 7.9 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 3 | 12.3 | 8.5 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,032 | 478 | 3 | 85,262 | 1 | 42,631 | 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 | - |
106 | 59 | 53 | 3.4 | zsh | - |
16 | 8 | 8 | 28.5 | bumpleak/osh | mut |
20 | 16 | 4 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 4 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 23 | 8 | 25.0 | osh-native | mut+alloc |
33 | 14 | 18 | 25.4 | osh-native | mut+alloc+free |
38 | 29 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 37 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 46 | 4 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
381 | 221 | 183 | 3.5 | zsh | - |
53 | 52 | 0 | 84.2 | bumpleak/osh | mut |
62 | 58 | 4 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
71 | 43 | 27 | 84.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
100 | 68 | 32 | 73.4 | osh-native | mut+alloc |
108 | 80 | 28 | 75.3 | osh-native | mut+alloc+free |
149 | 134 | 16 | 51.2 | osh-native | mut+alloc+free+gc |
156 | 125 | 31 | 52.3 | osh-native | mut+alloc+free+gc+exit |
140 | 92 | 48 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 180 | 32 | 72.7 | _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 | - |
7 | 3 | 3 | 11.7 | bumpleak/osh | mut |
6 | 3 | 3 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _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 | - |
29 | 25 | 4 | 3.0 | bash | - |
23 | 19 | 5 | 3.4 | zsh | - |
20 | 15 | 4 | 32.8 | bumpleak/osh | mut |
27 | 23 | 4 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
30 | 29 | 0 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 22 | 15 | 26.7 | osh-native | mut+alloc |
39 | 31 | 8 | 27.0 | osh-native | mut+alloc+free |
29 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 31 | 23 | 36.0 | _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 | 68 | 4 | 3.1 | bash | - |
169 | 120 | 48 | 56.4 | bumpleak/osh | mut |
181 | 129 | 52 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
196 | 120 | 76 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 157 | 56 | 48.9 | osh-native | mut+alloc |
222 | 153 | 68 | 50.7 | osh-native | mut+alloc+free |
182 | 118 | 63 | 8.5 | osh-native | mut+alloc+free+gc |
184 | 136 | 48 | 8.5 | osh-native | mut+alloc+free+gc+exit |
233 | 161 | 72 | 65.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 148 | 60 | 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 | 5 | 5 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 6 | 13 | 3.5 | zsh | - |
21 | 13 | 7 | 11.9 | bumpleak/osh | mut |
20 | 12 | 9 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 9 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 17 | 5 | 10.7 | osh-native | mut+alloc |
23 | 16 | 8 | 10.9 | osh-native | mut+alloc+free |
23 | 19 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 20 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
26 | 19 | 7 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 23 | 4 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |