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 | 18.0 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 150 | 26 | 62 | 46.1 | 51.4 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.7 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 2.9 | bash | - |
104 | 51 | 60 | 3.4 | zsh | - |
17 | 8 | 8 | 28.4 | bumpleak/osh | mut |
20 | 16 | 4 | 30.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 8 | 21 | 25.2 | osh-native | mut+alloc |
31 | 22 | 9 | 25.4 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 16 | 20 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 29 | 21 | 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 | 18 | 4 | 1.4 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
371 | 220 | 172 | 3.5 | zsh | - |
49 | 37 | 11 | 85.4 | bumpleak/osh | mut |
60 | 44 | 16 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 61 | 8 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 69 | 28 | 73.2 | osh-native | mut+alloc |
105 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
150 | 133 | 16 | 51.4 | osh-native | mut+alloc+free+gc |
158 | 126 | 31 | 52.2 | osh-native | mut+alloc+free+gc+exit |
142 | 110 | 31 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 175 | 32 | 71.6 | _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 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
5 | 5 | 0 | 11.9 | bumpleak/osh | mut |
7 | 4 | 4 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 14 | 5 | 31.9 | bumpleak/osh | mut |
26 | 18 | 7 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 27 | 0 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.5 | osh-native | mut+alloc |
38 | 37 | 0 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 45 | 8 | 36.0 | _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 |
72 | 68 | 4 | 3.3 | bash | - |
165 | 94 | 71 | 54.4 | bumpleak/osh | mut |
180 | 132 | 48 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
192 | 136 | 56 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 148 | 60 | 47.0 | osh-native | mut+alloc |
214 | 127 | 87 | 48.7 | osh-native | mut+alloc+free |
180 | 112 | 68 | 8.7 | osh-native | mut+alloc+free+gc |
180 | 125 | 55 | 8.8 | osh-native | mut+alloc+free+gc+exit |
228 | 140 | 88 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 154 | 53 | 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 | 8 | 1 | 3.4 | dash | - |
19 | 18 | 1 | 4.5 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
18 | 14 | 5 | 11.7 | bumpleak/osh | mut |
20 | 17 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 10 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 10 | 11.0 | osh-native | mut+alloc |
22 | 17 | 5 | 11.0 | osh-native | mut+alloc+free |
22 | 22 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
23 | 17 | 6 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |