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.8 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
parse.configure-coreutils | 151 | 24 | 62 | 46.1 | 51.5 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.8 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,291 | 478 | 3 | 85,342 | 1 | 42,671 | 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 | - |
104 | 54 | 56 | 3.4 | zsh | - |
17 | 13 | 4 | 28.3 | bumpleak/osh | mut |
20 | 20 | 0 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 24.9 | osh-native | mut+alloc |
31 | 19 | 12 | 25.3 | osh-native | mut+alloc+free |
35 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 30 | 13 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 40 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
377 | 218 | 181 | 3.4 | zsh | - |
50 | 41 | 8 | 84.0 | bumpleak/osh | mut |
63 | 47 | 16 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 39 | 31 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.6 | osh-native | mut+alloc |
107 | 83 | 24 | 75.3 | osh-native | mut+alloc+free |
151 | 131 | 20 | 51.5 | osh-native | mut+alloc+free+gc |
153 | 141 | 12 | 50.4 | osh-native | mut+alloc+free+gc+exit |
140 | 78 | 62 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
220 | 204 | 16 | 72.8 | _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 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
6 | 3 | 3 | 10.6 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 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 |
11 | 10 | 0 | 1.6 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 32.2 | bumpleak/osh | mut |
25 | 25 | 0 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.3 | osh-native | mut+alloc |
38 | 25 | 13 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 35 | 19 | 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 |
72 | 72 | 0 | 3.1 | bash | - |
167 | 103 | 63 | 55.7 | bumpleak/osh | mut |
180 | 123 | 56 | 54.7 | _bin/cxx-opt+bumproot/osh | mut |
196 | 120 | 76 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 120 | 92 | 47.1 | osh-native | mut+alloc |
217 | 133 | 84 | 48.8 | osh-native | mut+alloc+free |
180 | 135 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 114 | 67 | 8.5 | osh-native | mut+alloc+free+gc+exit |
229 | 157 | 72 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 143 | 63 | 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 | 6 | 3.5 | dash | - |
20 | 12 | 8 | 4.3 | bash | - |
18 | 12 | 6 | 3.5 | zsh | - |
18 | 15 | 4 | 11.4 | bumpleak/osh | mut |
21 | 14 | 8 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
21 | 20 | 1 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 11.0 | osh-native | mut+alloc |
23 | 20 | 3 | 10.7 | osh-native | mut+alloc+free |
22 | 13 | 9 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |