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 | 37 | 4 | 10 | 12.0 | 18.0 | 476,686 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 164 | 28 | 75 | 46.1 | 51.4 | 1,653,274 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,877 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,142 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 3 | 10.6 | 8.5 | 995,219 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,286 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
105 | 64 | 46 | 3.3 | zsh | - |
16 | 3 | 13 | 29.0 | bumpleak/osh | mut |
21 | 16 | 4 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 15 | 15 | 25.2 | osh-native | mut+alloc |
32 | 18 | 14 | 25.6 | osh-native | mut+alloc+free |
37 | 29 | 7 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 42 | 8 | 22.0 | _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 | - |
86 | 82 | 4 | 3.3 | bash | - |
378 | 231 | 168 | 3.7 | zsh | - |
50 | 42 | 8 | 85.2 | bumpleak/osh | mut |
60 | 48 | 12 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 45 | 54 | 73.3 | osh-native | mut+alloc |
108 | 84 | 24 | 75.3 | osh-native | mut+alloc+free |
164 | 139 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
191 | 170 | 20 | 52.1 | osh-native | mut+alloc+free+gc+exit |
141 | 97 | 43 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
242 | 221 | 20 | 74.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 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
6 | 3 | 3 | 10.5 | bumpleak/osh | mut |
7 | 7 | 0 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 9.8 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _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 | 29 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 19 | 0 | 31.0 | bumpleak/osh | mut |
25 | 21 | 4 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
29 | 20 | 8 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.3 | osh-native | mut+alloc |
39 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 42 | 12 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.4 | _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 | 2.9 | bash | - |
167 | 115 | 52 | 55.1 | bumpleak/osh | mut |
180 | 108 | 72 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
193 | 136 | 56 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 152 | 60 | 47.0 | osh-native | mut+alloc |
218 | 137 | 81 | 48.9 | osh-native | mut+alloc+free |
183 | 111 | 71 | 8.5 | osh-native | mut+alloc+free+gc |
181 | 122 | 59 | 8.7 | osh-native | mut+alloc+free+gc+exit |
236 | 164 | 72 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 161 | 48 | 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 |
11 | 9 | 2 | 3.3 | dash | - |
20 | 13 | 7 | 4.3 | bash | - |
18 | 7 | 12 | 3.5 | zsh | - |
21 | 15 | 6 | 12.6 | bumpleak/osh | mut |
20 | 12 | 9 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 10 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 11.0 | osh-native | mut+alloc |
24 | 15 | 9 | 10.9 | osh-native | mut+alloc+free |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 22 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 6 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 24 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |