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 | 4 | 10 | 12.0 | 18.0 | 476,698 | 1,282 | 6 | 408,770 | 5 | 204,385 | osh-native |
parse.configure-coreutils | 157 | 26 | 70 | 44.6 | 49.9 | 1,653,286 | 4,764 | 12 | 1,030,654 | 6 | 769,411 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,889 | 180 | 2 | 75,112 | 1 | 37,556 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.9 | 584,154 | 31,810 | 12 | 50,000 | 0 | 2,832 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.7 | 995,231 | 27,376 | 21 | 50,000 | 0 | 3,823 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,298 | 478 | 3 | 85,348 | 1 | 42,674 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 7 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 2.9 | bash | - |
104 | 62 | 49 | 3.3 | zsh | - |
16 | 12 | 4 | 28.1 | bumpleak/osh | mut |
20 | 20 | 0 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 13 | 9 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 36 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 37 | 11 | 21.8 | _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 | - |
77 | 73 | 4 | 3.3 | bash | - |
378 | 182 | 218 | 3.5 | zsh | - |
50 | 41 | 8 | 84.3 | bumpleak/osh | mut |
60 | 56 | 4 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 51 | 20 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 57 | 40 | 73.6 | osh-native | mut+alloc |
106 | 73 | 33 | 75.4 | osh-native | mut+alloc+free |
157 | 137 | 20 | 49.9 | osh-native | mut+alloc+free+gc |
169 | 160 | 8 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 97 | 41 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 195 | 24 | 68.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 | 2 | 0 | 1.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 6 | 0 | 10.7 | bumpleak/osh | mut |
7 | 3 | 3 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
10 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 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 | 24 | 4 | 2.9 | bash | - |
23 | 23 | 0 | 3.3 | zsh | - |
19 | 0 | 19 | 31.2 | bumpleak/osh | mut |
26 | 14 | 11 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 33 | 4 | 26.2 | 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 |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 50 | 4 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 4 | 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 | 68 | 4 | 3.1 | bash | - |
170 | 121 | 49 | 55.8 | bumpleak/osh | mut |
180 | 112 | 68 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
192 | 108 | 84 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 143 | 68 | 46.9 | osh-native | mut+alloc |
218 | 151 | 67 | 48.6 | osh-native | mut+alloc+free |
182 | 129 | 53 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 117 | 64 | 8.8 | osh-native | mut+alloc+free+gc+exit |
230 | 158 | 71 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 168 | 40 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 13 | 7 | 4.3 | bash | - |
18 | 16 | 3 | 3.5 | zsh | - |
19 | 10 | 9 | 12.3 | bumpleak/osh | mut |
19 | 16 | 4 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 5 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 10.9 | osh-native | mut+alloc |
22 | 14 | 8 | 11.1 | osh-native | mut+alloc+free |
22 | 19 | 4 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |