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 | 38 | 6 | 12 | 12.0 | 17.7 | 476,679 | 1,282 | 6 | 408,748 | 5 | 204,374 | osh-native |
parse.configure-coreutils | 159 | 25 | 70 | 46.1 | 51.6 | 1,653,267 | 4,764 | 12 | 1,069,114 | 6 | 798,638 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,870 | 180 | 2 | 75,090 | 1 | 37,545 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.9 | 584,135 | 31,810 | 12 | 50,000 | 0 | 2,822 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.6 | 8.7 | 995,212 | 27,376 | 21 | 50,000 | 0 | 3,817 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,279 | 478 | 3 | 85,326 | 1 | 42,663 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
103 | 57 | 52 | 3.4 | zsh | - |
16 | 12 | 4 | 29.2 | bumpleak/osh | mut |
19 | 15 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 24.9 | osh-native | mut+alloc |
32 | 28 | 4 | 25.4 | osh-native | mut+alloc+free |
38 | 27 | 12 | 17.7 | osh-native | mut+alloc+free+gc |
38 | 29 | 8 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 21 | 21 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 36 | 12 | 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 | 22 | 0 | 1.4 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
376 | 221 | 177 | 3.5 | zsh | - |
49 | 37 | 12 | 83.9 | bumpleak/osh | mut |
61 | 52 | 8 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 62 | 8 | 86.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 73 | 24 | 73.2 | osh-native | mut+alloc |
106 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
159 | 139 | 20 | 51.6 | osh-native | mut+alloc+free+gc |
163 | 122 | 41 | 52.2 | osh-native | mut+alloc+free+gc+exit |
140 | 92 | 48 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
220 | 188 | 32 | 73.2 | _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 | 2.9 | bash | - |
7 | 4 | 4 | 3.1 | zsh | - |
6 | 3 | 3 | 10.8 | bumpleak/osh | mut |
7 | 3 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.3 | _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 | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 19 | 0 | 31.3 | bumpleak/osh | mut |
26 | 17 | 9 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 22 | 15 | 26.3 | osh-native | mut+alloc |
39 | 31 | 8 | 26.6 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 50 | 4 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 30 | 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 |
73 | 69 | 4 | 3.1 | bash | - |
167 | 95 | 72 | 55.7 | bumpleak/osh | mut |
178 | 118 | 59 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
192 | 136 | 56 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 123 | 87 | 46.9 | osh-native | mut+alloc |
221 | 152 | 68 | 48.9 | osh-native | mut+alloc+free |
182 | 117 | 65 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 137 | 44 | 8.4 | osh-native | mut+alloc+free+gc+exit |
231 | 133 | 97 | 63.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 152 | 56 | 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 | 10 | 0 | 3.5 | dash | - |
20 | 20 | 0 | 4.5 | bash | - |
18 | 12 | 7 | 3.4 | zsh | - |
19 | 9 | 10 | 11.5 | bumpleak/osh | mut |
21 | 13 | 9 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 11 | 12 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 19 | 3 | 10.7 | osh-native | mut+alloc |
23 | 21 | 3 | 11.0 | osh-native | mut+alloc+free |
23 | 16 | 7 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 19 | 6 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 11 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 21 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |