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 | 38 | 5 | 11 | 12.0 | 18.0 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 172 | 27 | 79 | 46.1 | 51.6 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 185 | 0 | 4 | 10.6 | 8.8 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,284 | 478 | 3 | 85,332 | 1 | 42,666 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
25 | 25 | 0 | 3.0 | bash | - |
105 | 52 | 60 | 3.4 | zsh | - |
16 | 12 | 4 | 28.7 | bumpleak/osh | mut |
20 | 20 | 0 | 28.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 13 | 17 | 25.2 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
38 | 27 | 11 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 34 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 43 | 9 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
378 | 229 | 169 | 3.5 | zsh | - |
49 | 34 | 15 | 85.3 | bumpleak/osh | mut |
59 | 55 | 4 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
71 | 67 | 4 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.6 | osh-native | mut+alloc |
105 | 72 | 32 | 75.4 | osh-native | mut+alloc+free |
172 | 148 | 24 | 51.6 | osh-native | mut+alloc+free+gc |
170 | 150 | 20 | 52.2 | osh-native | mut+alloc+free+gc+exit |
139 | 103 | 36 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
222 | 197 | 24 | 73.5 | _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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 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 |
10 | 7 | 3 | 1.4 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
24 | 23 | 0 | 3.4 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
26 | 25 | 0 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
39 | 38 | 0 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 50 | 4 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 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 | - |
167 | 100 | 68 | 55.3 | bumpleak/osh | mut |
181 | 121 | 60 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
195 | 134 | 61 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 132 | 80 | 47.1 | osh-native | mut+alloc |
222 | 131 | 91 | 48.8 | osh-native | mut+alloc+free |
185 | 128 | 56 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 120 | 64 | 8.7 | osh-native | mut+alloc+free+gc+exit |
235 | 167 | 68 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 130 | 83 | 9.9 | _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 | 8 | 2 | 3.4 | dash | - |
20 | 11 | 9 | 4.3 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
20 | 9 | 11 | 12.3 | bumpleak/osh | mut |
20 | 12 | 9 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 8 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 10.9 | osh-native | mut+alloc |
24 | 15 | 9 | 11.0 | osh-native | mut+alloc+free |
23 | 18 | 6 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 12 | 12 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 12 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 21 | 5 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |