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.7 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 142 | 22 | 55 | 46.1 | 51.3 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 3.1 | 7.9 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 3 | 12.3 | 8.8 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
103 | 60 | 50 | 3.5 | zsh | - |
16 | 16 | 0 | 28.7 | bumpleak/osh | mut |
20 | 16 | 4 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 24.9 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 42 | 4 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
374 | 206 | 191 | 3.7 | zsh | - |
50 | 41 | 8 | 83.8 | bumpleak/osh | mut |
59 | 47 | 12 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 83 | 16 | 73.3 | osh-native | mut+alloc |
105 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
142 | 130 | 12 | 51.3 | osh-native | mut+alloc+free+gc |
147 | 115 | 32 | 52.3 | osh-native | mut+alloc+free+gc+exit |
139 | 83 | 55 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
201 | 172 | 28 | 74.2 | _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 | - |
8 | 4 | 4 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 3 | 3 | 10.9 | bumpleak/osh | mut |
6 | 6 | 0 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 6 | 6 | 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.3 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
24 | 12 | 12 | 3.4 | zsh | - |
19 | 15 | 4 | 31.9 | bumpleak/osh | mut |
26 | 26 | 0 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 36 | 0 | 26.7 | osh-native | mut+alloc |
38 | 26 | 11 | 26.9 | osh-native | mut+alloc+free |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 33 | 20 | 36.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 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 | 117 | 52 | 56.7 | bumpleak/osh | mut |
178 | 145 | 32 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
196 | 104 | 92 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 128 | 84 | 48.9 | osh-native | mut+alloc |
218 | 131 | 87 | 50.7 | osh-native | mut+alloc+free |
183 | 111 | 71 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 122 | 59 | 8.5 | osh-native | mut+alloc+free+gc+exit |
233 | 162 | 71 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 156 | 52 | 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 | 5 | 4 | 3.5 | dash | - |
20 | 17 | 3 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
18 | 13 | 5 | 11.9 | bumpleak/osh | mut |
19 | 10 | 9 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 10 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 10.9 | osh-native | mut+alloc |
22 | 17 | 6 | 11.0 | osh-native | mut+alloc+free |
22 | 11 | 12 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 13 | 11 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |