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 | 17.6 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 147 | 23 | 59 | 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.3 | 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 | 181 | 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.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 |
7 | 7 | 0 | 1.6 | dash | - |
24 | 24 | 0 | 3.0 | bash | - |
104 | 50 | 61 | 3.3 | zsh | - |
16 | 16 | 0 | 28.7 | bumpleak/osh | mut |
20 | 12 | 8 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.0 | osh-native | mut+alloc |
32 | 24 | 8 | 25.4 | osh-native | mut+alloc+free |
35 | 23 | 12 | 17.6 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 31 | 15 | 22.2 | _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 | 73 | 4 | 3.3 | bash | - |
371 | 204 | 189 | 3.5 | zsh | - |
50 | 37 | 12 | 84.6 | bumpleak/osh | mut |
62 | 57 | 4 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 73 | 24 | 73.4 | osh-native | mut+alloc |
106 | 86 | 20 | 75.3 | osh-native | mut+alloc+free |
147 | 114 | 33 | 51.6 | osh-native | mut+alloc+free+gc |
151 | 143 | 8 | 52.3 | osh-native | mut+alloc+free+gc+exit |
140 | 104 | 36 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 188 | 20 | 71.7 | _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 | 7 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 9.8 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 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 |
11 | 11 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 30.7 | bumpleak/osh | mut |
26 | 25 | 0 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 27 | 0 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 16 | 20 | 26.3 | osh-native | mut+alloc |
38 | 23 | 15 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
27 | 23 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 30 | 7 | 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 | 73 | 0 | 3.0 | bash | - |
168 | 124 | 44 | 54.1 | bumpleak/osh | mut |
181 | 122 | 59 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
193 | 128 | 64 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 113 | 97 | 47.1 | osh-native | mut+alloc |
215 | 135 | 80 | 48.8 | osh-native | mut+alloc+free |
181 | 152 | 28 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 120 | 60 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 171 | 60 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 164 | 44 | 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 | 4 | 5 | 3.5 | dash | - |
19 | 16 | 4 | 4.3 | bash | - |
17 | 12 | 7 | 3.5 | zsh | - |
18 | 16 | 3 | 11.0 | bumpleak/osh | mut |
20 | 13 | 8 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
20 | 7 | 13 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 21 | 2 | 10.9 | osh-native | mut+alloc |
22 | 14 | 8 | 11.0 | osh-native | mut+alloc+free |
22 | 14 | 9 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 17 | 7 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 14 | 11 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |