Source code: oils/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 | 33 | 3 | 9 | 12.1 | 18.6 | 477,960 | 1,282 | 6 | 406,268 | 5 | 203,134 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.1 | 18.1 | 477,960 | 1,282 | 6 | 406,258 | 5 | 203,129 | osh-souffle |
parse.configure-coreutils | 158 | 28 | 74 | 44.4 | 50.2 | 1,656,039 | 4,764 | 12 | 1,021,758 | 6 | 761,509 | osh-native |
parse.configure-coreutils | 139 | 24 | 66 | 44.4 | 49.7 | 1,656,038 | 4,764 | 12 | 1,021,748 | 6 | 761,504 | osh-souffle |
parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,877 | 180 | 3 | 86,660 | 1 | 43,330 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.8 | 102,877 | 180 | 3 | 86,650 | 1 | 43,325 | osh-souffle |
ex.compute-fib | 25 | 0 | 1 | 2.2 | 8.8 | 579,748 | 22,608 | 12 | 50,000 | 0 | 2,946 | osh-native |
ex.compute-fib | 20 | 0 | 1 | 2.2 | 8.4 | 579,748 | 22,608 | 12 | 50,000 | 0 | 2,941 | osh-souffle |
ex.bashcomp-parse-help | 229 | 0 | 4 | 11.1 | 9.7 | 1,021,095 | 15,258 | 22 | 50,000 | 0 | 3,933 | osh-native |
ex.bashcomp-parse-help | 223 | 0 | 4 | 11.1 | 9.0 | 1,021,094 | 15,258 | 22 | 50,000 | 0 | 3,930 | osh-souffle |
ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,369 | 277 | 3 | 84,028 | 1 | 42,014 | osh-native |
ex.abuild-print-help | 19 | 1 | 2 | 3.0 | 9.4 | 117,369 | 277 | 3 | 84,018 | 1 | 42,009 | osh-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
13 | 12 | 1 | 3.4 | bash | - |
88 | 43 | 51 | 3.5 | zsh | - |
15 | 12 | 4 | 30.4 | bumpleak/osh | mut |
19 | 16 | 3 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 31.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
28 | 15 | 13 | 25.8 | osh-native | mut+alloc |
31 | 26 | 5 | 26.2 | osh-native | mut+alloc+free |
33 | 25 | 9 | 18.6 | osh-native | mut+alloc+free+gc |
34 | 28 | 6 | 18.6 | osh-native | mut+alloc+free+gc+exit |
26 | 18 | 8 | 25.4 | osh-souffle | mut+alloc |
28 | 19 | 9 | 25.8 | osh-souffle | mut+alloc+free |
33 | 26 | 7 | 18.1 | osh-souffle | mut+alloc+free+gc |
32 | 26 | 6 | 18.1 | osh-souffle | mut+alloc+free+gc+exit |
43 | 26 | 17 | 34.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 38 | 11 | 22.9 | _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 |
23 | 23 | 0 | 1.7 | dash | - |
43 | 42 | 1 | 3.4 | bash | - |
320 | 190 | 151 | 3.7 | zsh | - |
46 | 35 | 11 | 85.6 | bumpleak/osh | mut |
57 | 45 | 12 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
67 | 54 | 13 | 86.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
92 | 56 | 36 | 74.3 | osh-native | mut+alloc |
100 | 70 | 30 | 76.0 | osh-native | mut+alloc+free |
158 | 136 | 22 | 50.2 | osh-native | mut+alloc+free+gc |
161 | 131 | 30 | 50.9 | osh-native | mut+alloc+free+gc+exit |
83 | 47 | 36 | 73.7 | osh-souffle | mut+alloc |
93 | 56 | 37 | 75.7 | osh-souffle | mut+alloc+free |
139 | 115 | 24 | 49.7 | osh-souffle | mut+alloc+free+gc |
137 | 109 | 28 | 50.6 | osh-souffle | mut+alloc+free+gc+exit |
138 | 81 | 58 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 182 | 24 | 68.0 | _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.7 | dash | - |
4 | 4 | 0 | 3.1 | bash | - |
6 | 4 | 2 | 3.5 | zsh | - |
6 | 4 | 2 | 11.5 | bumpleak/osh | mut |
7 | 6 | 1 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 6 | 1 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 2 | 7 | 10.9 | osh-native | mut+alloc |
9 | 7 | 2 | 10.9 | osh-native | mut+alloc+free |
10 | 7 | 3 | 9.2 | osh-native | mut+alloc+free+gc |
10 | 6 | 4 | 9.0 | osh-native | mut+alloc+free+gc+exit |
8 | 7 | 1 | 10.4 | osh-souffle | mut+alloc |
8 | 2 | 6 | 10.5 | osh-souffle | mut+alloc+free |
10 | 9 | 1 | 8.8 | osh-souffle | mut+alloc+free+gc |
9 | 8 | 1 | 8.7 | osh-souffle | mut+alloc+free+gc+exit |
12 | 8 | 4 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 8 | 5 | 9.9 | _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.6 | dash | - |
31 | 30 | 1 | 3.1 | bash | - |
21 | 18 | 3 | 3.4 | zsh | - |
17 | 15 | 2 | 33.0 | bumpleak/osh | mut |
23 | 19 | 4 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
26 | 21 | 5 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
33 | 23 | 10 | 27.1 | osh-native | mut+alloc |
34 | 23 | 11 | 27.3 | osh-native | mut+alloc+free |
25 | 23 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
25 | 21 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
28 | 13 | 15 | 26.5 | osh-souffle | mut+alloc |
29 | 20 | 9 | 26.9 | osh-souffle | mut+alloc+free |
20 | 17 | 3 | 8.4 | osh-souffle | mut+alloc+free+gc |
19 | 17 | 3 | 8.1 | osh-souffle | mut+alloc+free+gc+exit |
51 | 33 | 18 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
34 | 30 | 4 | 10.1 | _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 |
103 | 99 | 4 | 3.4 | bash | - |
214 | 163 | 51 | 57.4 | bumpleak/osh | mut |
228 | 183 | 45 | 58.4 | _bin/cxx-opt+bumproot/osh | mut |
246 | 187 | 59 | 59.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
267 | 198 | 69 | 49.5 | osh-native | mut+alloc |
273 | 203 | 70 | 51.5 | osh-native | mut+alloc+free |
229 | 180 | 49 | 9.7 | osh-native | mut+alloc+free+gc |
227 | 189 | 38 | 9.6 | osh-native | mut+alloc+free+gc+exit |
257 | 204 | 53 | 49.0 | osh-souffle | mut+alloc |
264 | 183 | 81 | 51.0 | osh-souffle | mut+alloc+free |
223 | 172 | 51 | 9.0 | osh-souffle | mut+alloc+free+gc |
223 | 173 | 50 | 9.0 | osh-souffle | mut+alloc+free+gc+exit |
287 | 208 | 79 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
259 | 205 | 54 | 10.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 |
9 | 3 | 6 | 3.9 | dash | - |
16 | 9 | 8 | 4.7 | bash | - |
16 | 7 | 9 | 3.9 | zsh | - |
17 | 7 | 10 | 12.1 | bumpleak/osh | mut |
19 | 8 | 11 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
19 | 12 | 8 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 4 | 16 | 11.9 | osh-native | mut+alloc |
20 | 10 | 10 | 11.9 | osh-native | mut+alloc+free |
21 | 13 | 8 | 10.0 | osh-native | mut+alloc+free+gc |
21 | 12 | 10 | 10.0 | osh-native | mut+alloc+free+gc+exit |
19 | 7 | 12 | 11.5 | osh-souffle | mut+alloc |
19 | 5 | 14 | 11.4 | osh-souffle | mut+alloc+free |
19 | 11 | 9 | 9.4 | osh-souffle | mut+alloc+free+gc |
19 | 10 | 10 | 9.4 | osh-souffle | mut+alloc+free+gc+exit |
23 | 10 | 13 | 13.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 14 | 10.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |