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,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 160 | 26 | 74 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.9 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.7 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,311 | 270 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 3 | 3 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 64 | 47 | 3.3 | zsh | - |
17 | 10 | 7 | 28.2 | bumpleak/osh | mut |
20 | 8 | 12 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 24.9 | osh-native | mut+alloc |
32 | 28 | 4 | 25.7 | osh-native | mut+alloc+free |
36 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 37 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 31 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 39 | 12 | 22.1 | _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 | 22 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
378 | 196 | 203 | 3.7 | zsh | - |
48 | 44 | 4 | 85.2 | bumpleak/osh | mut |
60 | 51 | 8 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
72 | 63 | 8 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 51 | 47 | 73.6 | osh-native | mut+alloc |
106 | 71 | 35 | 75.3 | osh-native | mut+alloc+free |
160 | 140 | 20 | 49.9 | osh-native | mut+alloc+free+gc |
166 | 149 | 16 | 50.6 | osh-native | mut+alloc+free+gc+exit |
142 | 102 | 39 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 186 | 40 | 67.0 | _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 | 8 | 0 | 3.3 | zsh | - |
6 | 3 | 3 | 12.3 | bumpleak/osh | mut |
7 | 7 | 0 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.5 | _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 |
11 | 11 | 0 | 1.4 | dash | - |
30 | 29 | 0 | 3.0 | bash | - |
24 | 12 | 12 | 3.1 | zsh | - |
19 | 9 | 9 | 31.3 | bumpleak/osh | mut |
26 | 22 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.1 | osh-native | mut+alloc |
38 | 25 | 13 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 27 | 27 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _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 | 69 | 4 | 3.1 | bash | - |
169 | 101 | 68 | 54.6 | bumpleak/osh | mut |
185 | 128 | 56 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 122 | 71 | 55.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 138 | 75 | 47.1 | osh-native | mut+alloc |
218 | 133 | 85 | 48.7 | osh-native | mut+alloc+free |
183 | 146 | 36 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 139 | 44 | 8.7 | osh-native | mut+alloc+free+gc+exit |
235 | 158 | 77 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 149 | 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 | 7 | 3 | 3.5 | dash | - |
20 | 15 | 5 | 4.3 | bash | - |
18 | 9 | 10 | 3.5 | zsh | - |
21 | 10 | 12 | 12.8 | bumpleak/osh | mut |
20 | 15 | 5 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 11 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 13 | 8 | 10.9 | osh-native | mut+alloc |
23 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
23 | 14 | 9 | 8.8 | osh-native | mut+alloc+free+gc |
24 | 18 | 6 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 9 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |