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 | 36 | 3 | 9 | 12.0 | 17.8 | 476,690 | 1,282 | 6 | 408,762 | 5 | 204,381 | osh-native |
parse.configure-coreutils | 161 | 27 | 74 | 46.1 | 51.7 | 1,653,278 | 4,764 | 12 | 1,069,128 | 6 | 798,645 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,881 | 180 | 2 | 75,104 | 1 | 37,552 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.7 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,828 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.8 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,290 | 478 | 3 | 85,340 | 1 | 42,670 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 0 | 6 | 1.4 | dash | - |
24 | 23 | 0 | 3.1 | bash | - |
105 | 65 | 47 | 3.3 | zsh | - |
16 | 16 | 0 | 28.7 | bumpleak/osh | mut |
19 | 19 | 0 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 22 | 0 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 13 | 24.9 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 26 | 17 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 31 | 16 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
79 | 79 | 0 | 3.3 | bash | - |
378 | 229 | 169 | 3.5 | zsh | - |
50 | 29 | 21 | 84.0 | bumpleak/osh | mut |
59 | 55 | 4 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 24 | 47 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 77 | 20 | 73.4 | osh-native | mut+alloc |
105 | 81 | 24 | 75.1 | osh-native | mut+alloc+free |
161 | 133 | 28 | 51.7 | osh-native | mut+alloc+free+gc |
164 | 136 | 28 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 205 | 12 | 72.3 | _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 | 2.9 | bash | - |
8 | 0 | 7 | 3.4 | zsh | - |
6 | 0 | 6 | 11.9 | bumpleak/osh | mut |
7 | 0 | 7 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 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 | 10 | 0 | 1.6 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 32.3 | bumpleak/osh | mut |
26 | 25 | 0 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 16 | 12 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
39 | 26 | 13 | 26.6 | osh-native | mut+alloc+free |
29 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 30 | 23 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 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 |
74 | 73 | 0 | 3.1 | bash | - |
167 | 115 | 52 | 54.2 | bumpleak/osh | mut |
178 | 133 | 44 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
196 | 120 | 76 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 119 | 91 | 47.0 | osh-native | mut+alloc |
218 | 141 | 77 | 48.8 | osh-native | mut+alloc+free |
181 | 132 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 128 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 159 | 72 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 175 | 36 | 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 | 6 | 4 | 3.5 | dash | - |
20 | 17 | 3 | 4.5 | bash | - |
18 | 18 | 0 | 3.4 | zsh | - |
19 | 11 | 8 | 13.3 | bumpleak/osh | mut |
20 | 17 | 3 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 16 | 5 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 13 | 9 | 10.9 | osh-native | mut+alloc |
23 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
23 | 17 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |