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 | 37 | 4 | 11 | 12.0 | 18.0 | 476,679 | 1,282 | 6 | 408,748 | 5 | 204,374 | osh-native |
parse.configure-coreutils | 157 | 25 | 70 | 46.1 | 51.7 | 1,653,267 | 4,764 | 12 | 1,069,114 | 6 | 798,638 | osh-native |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.5 | 101,870 | 180 | 2 | 75,090 | 1 | 37,545 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.7 | 584,135 | 31,810 | 12 | 50,000 | 0 | 2,822 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.8 | 995,212 | 27,376 | 21 | 50,000 | 0 | 3,817 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,279 | 478 | 3 | 85,326 | 1 | 42,663 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 64 | 47 | 3.4 | zsh | - |
17 | 17 | 0 | 29.5 | bumpleak/osh | mut |
20 | 20 | 0 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
24 | 20 | 4 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 25.0 | osh-native | mut+alloc |
33 | 28 | 4 | 25.6 | osh-native | mut+alloc+free |
37 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
39 | 39 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 37 | 12 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
376 | 204 | 193 | 3.5 | zsh | - |
49 | 41 | 8 | 85.3 | bumpleak/osh | mut |
62 | 53 | 8 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 43 | 27 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 79 | 20 | 73.3 | osh-native | mut+alloc |
107 | 83 | 24 | 75.1 | osh-native | mut+alloc+free |
157 | 137 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
172 | 132 | 40 | 52.1 | osh-native | mut+alloc+free+gc+exit |
139 | 103 | 36 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 188 | 28 | 72.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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
7 | 7 | 0 | 11.4 | bumpleak/osh | mut |
7 | 0 | 7 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 9.7 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
10 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 7 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 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 | - |
29 | 29 | 0 | 2.9 | bash | - |
25 | 14 | 11 | 3.3 | zsh | - |
19 | 12 | 8 | 32.4 | bumpleak/osh | mut |
26 | 23 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 15 | 22 | 26.2 | osh-native | mut+alloc |
39 | 22 | 17 | 26.9 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
41 | 37 | 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 | 66 | 8 | 3.1 | bash | - |
168 | 108 | 60 | 54.2 | bumpleak/osh | mut |
179 | 119 | 60 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 130 | 63 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 124 | 88 | 46.9 | osh-native | mut+alloc |
219 | 123 | 96 | 48.9 | osh-native | mut+alloc+free |
181 | 134 | 47 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 127 | 56 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 141 | 92 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 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 | 9 | 2 | 3.5 | dash | - |
20 | 16 | 4 | 4.5 | bash | - |
17 | 12 | 6 | 3.5 | zsh | - |
19 | 14 | 5 | 11.8 | bumpleak/osh | mut |
21 | 11 | 11 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 12 | 10 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 11.0 | osh-native | mut+alloc |
23 | 11 | 12 | 10.9 | osh-native | mut+alloc+free |
23 | 22 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 20 | 6 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |