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 | 39 | 4 | 12 | 12.0 | 18.0 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 174 | 29 | 82 | 46.1 | 51.5 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.4 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 3.1 | 8.0 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 184 | 0 | 4 | 12.3 | 8.7 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 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 | - |
24 | 23 | 0 | 3.0 | bash | - |
106 | 71 | 41 | 3.3 | zsh | - |
17 | 10 | 7 | 28.2 | bumpleak/osh | mut |
20 | 20 | 0 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 19 | 25.0 | osh-native | mut+alloc |
33 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
39 | 31 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 33 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
44 | 31 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
57 | 48 | 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 | 17 | 4 | 1.6 | dash | - |
82 | 78 | 4 | 3.3 | bash | - |
381 | 262 | 139 | 3.5 | zsh | - |
49 | 34 | 15 | 84.4 | bumpleak/osh | mut |
61 | 53 | 8 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 67 | 4 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 71 | 28 | 73.4 | osh-native | mut+alloc |
109 | 77 | 32 | 75.0 | osh-native | mut+alloc+free |
174 | 153 | 20 | 51.5 | osh-native | mut+alloc+free+gc |
182 | 158 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
138 | 87 | 51 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
249 | 228 | 20 | 73.3 | _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 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 3 | 3 | 10.5 | bumpleak/osh | mut |
6 | 3 | 3 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 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 | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 0 | 19 | 32.8 | bumpleak/osh | mut |
27 | 18 | 9 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 30 | 7 | 26.7 | osh-native | mut+alloc |
40 | 28 | 12 | 27.2 | osh-native | mut+alloc+free |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 29 | 8 | 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 |
74 | 70 | 4 | 3.1 | bash | - |
170 | 125 | 44 | 56.1 | bumpleak/osh | mut |
180 | 136 | 44 | 56.8 | _bin/cxx-opt+bumproot/osh | mut |
197 | 137 | 60 | 58.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 147 | 68 | 48.7 | osh-native | mut+alloc |
222 | 109 | 113 | 50.6 | osh-native | mut+alloc+free |
184 | 100 | 84 | 8.7 | osh-native | mut+alloc+free+gc |
185 | 133 | 52 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 157 | 77 | 65.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 183 | 44 | 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 | 2 | 3.5 | dash | - |
20 | 20 | 1 | 4.5 | bash | - |
18 | 9 | 10 | 3.5 | zsh | - |
21 | 18 | 2 | 12.0 | bumpleak/osh | mut |
22 | 17 | 5 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 12 | 11 | 10.9 | osh-native | mut+alloc |
24 | 13 | 11 | 10.7 | osh-native | mut+alloc+free |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 16 | 10 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 8 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |