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 | 5 | 12 | 12.0 | 18.0 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 166 | 27 | 77 | 44.6 | 49.8 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 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 |
6 | 6 | 0 | 1.4 | dash | - |
24 | 20 | 4 | 3.0 | bash | - |
107 | 64 | 49 | 3.1 | zsh | - |
17 | 8 | 8 | 29.7 | bumpleak/osh | mut |
20 | 20 | 0 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
32 | 20 | 12 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
39 | 31 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 21 | 17 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 22 | 22 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
59 | 55 | 4 | 22.3 | _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 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
377 | 212 | 188 | 3.5 | zsh | - |
49 | 32 | 16 | 84.8 | bumpleak/osh | mut |
61 | 49 | 12 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 70 | 27 | 73.6 | osh-native | mut+alloc |
107 | 63 | 43 | 75.3 | osh-native | mut+alloc+free |
166 | 149 | 16 | 49.8 | osh-native | mut+alloc+free+gc |
173 | 165 | 8 | 50.6 | osh-native | mut+alloc+free+gc+exit |
141 | 88 | 52 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
236 | 220 | 16 | 68.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 | 0 | 2 | 1.4 | dash | - |
6 | 0 | 6 | 2.9 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc |
9 | 5 | 5 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 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 | 7 | 4 | 1.4 | dash | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 16 | 4 | 30.8 | bumpleak/osh | mut |
26 | 22 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 20 | 8 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.3 | osh-native | mut+alloc |
39 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 46 | 8 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 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 |
72 | 72 | 0 | 3.1 | bash | - |
170 | 117 | 52 | 54.0 | bumpleak/osh | mut |
179 | 96 | 84 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
196 | 148 | 48 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 128 | 84 | 46.9 | osh-native | mut+alloc |
218 | 129 | 88 | 48.6 | osh-native | mut+alloc+free |
181 | 124 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 135 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 110 | 122 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 130 | 83 | 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 | 10 | 1 | 3.4 | dash | - |
20 | 13 | 7 | 4.3 | bash | - |
19 | 9 | 10 | 3.4 | zsh | - |
19 | 15 | 4 | 12.2 | bumpleak/osh | mut |
21 | 18 | 3 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 8 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 12 | 11 | 10.7 | osh-native | mut+alloc |
23 | 14 | 10 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 23 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |