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 | 39 | 5 | 12 | 12.0 | 17.8 | 476,745 | 1,282 | 6 | 406,318 | 5 | 203,159 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 17.4 | 476,745 | 1,282 | 6 | 406,188 | 5 | 203,094 | osh-native-souffle |
| parse.configure-coreutils | 160 | 24 | 73 | 44.5 | 49.8 | 1,653,333 | 4,764 | 12 | 1,025,514 | 6 | 764,300 | osh-native |
| parse.configure-coreutils | 151 | 26 | 72 | 45.9 | 51.0 | 1,653,332 | 4,764 | 12 | 1,063,844 | 6 | 792,360 | osh-native-souffle |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,936 | 180 | 2 | 75,018 | 1 | 37,509 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,936 | 180 | 3 | 87,080 | 1 | 43,540 | osh-native-souffle |
| ex.compute-fib | 29 | 0 | 2 | 2.1 | 8.0 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,913 | osh-native |
| ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,851 | osh-native-souffle |
| ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,282 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
| ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.3 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,312 | 277 | 3 | 85,236 | 1 | 42,618 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,312 | 277 | 3 | 85,112 | 1 | 42,556 | osh-native-souffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 3 | 3 | 1.4 | dash | - |
| 23 | 19 | 4 | 2.9 | bash | - |
| 104 | 47 | 64 | 3.4 | zsh | - |
| 16 | 12 | 4 | 28.6 | bumpleak/osh | mut |
| 19 | 11 | 8 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 17 | 13 | 25.2 | osh-native | mut+alloc |
| 33 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
| 39 | 27 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
| 39 | 34 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 55 | 51 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 27 | 15 | 12 | 24.9 | osh-native-souffle | mut+alloc |
| 29 | 12 | 17 | 25.2 | osh-native-souffle | mut+alloc+free |
| 34 | 29 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
| 33 | 33 | 0 | 17.6 | osh-native-souffle | mut+alloc+free+gc+exit |
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.6 | dash | - |
| 77 | 77 | 0 | 3.1 | bash | - |
| 383 | 216 | 188 | 3.4 | zsh | - |
| 49 | 28 | 20 | 85.0 | bumpleak/osh | mut |
| 60 | 44 | 16 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 42 | 29 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 68 | 28 | 73.4 | osh-native | mut+alloc |
| 104 | 80 | 24 | 75.4 | osh-native | mut+alloc+free |
| 160 | 136 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
| 157 | 140 | 16 | 50.3 | osh-native | mut+alloc+free+gc+exit |
| 139 | 95 | 44 | 99.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 223 | 203 | 20 | 67.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 89 | 60 | 28 | 73.3 | osh-native-souffle | mut+alloc |
| 96 | 76 | 20 | 75.1 | osh-native-souffle | mut+alloc+free |
| 151 | 126 | 24 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
| 147 | 130 | 16 | 51.5 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | - |
| 8 | 0 | 7 | 3.4 | zsh | - |
| 6 | 3 | 3 | 11.4 | bumpleak/osh | mut |
| 6 | 3 | 3 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 4 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 4 | 4 | 10.2 | osh-native | mut+alloc |
| 9 | 4 | 4 | 10.2 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 12 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
| 9 | 9 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
| 9 | 9 | 0 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
| 10 | 5 | 5 | 8.0 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | - |
| 30 | 29 | 0 | 2.9 | bash | - |
| 24 | 24 | 0 | 3.3 | zsh | - |
| 21 | 17 | 3 | 31.8 | bumpleak/osh | mut |
| 26 | 22 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 20 | 8 | 31.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 12 | 24 | 26.3 | osh-native | mut+alloc |
| 38 | 21 | 17 | 26.6 | osh-native | mut+alloc+free |
| 29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 54 | 38 | 15 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 31 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
| 32 | 20 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
| 22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
| 22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc+exit |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 74 | 70 | 4 | 3.1 | bash | - |
| 168 | 92 | 76 | 54.9 | bumpleak/osh | mut |
| 184 | 128 | 56 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
| 196 | 140 | 56 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 134 | 75 | 47.4 | osh-native | mut+alloc |
| 217 | 138 | 79 | 49.0 | osh-native | mut+alloc+free |
| 181 | 122 | 59 | 8.7 | osh-native | mut+alloc+free+gc |
| 182 | 134 | 47 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 235 | 139 | 96 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 214 | 166 | 47 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 208 | 134 | 73 | 46.9 | osh-native-souffle | mut+alloc |
| 212 | 148 | 64 | 48.6 | osh-native-souffle | mut+alloc+free |
| 174 | 142 | 32 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
| 175 | 107 | 68 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 10 | 5 | 6 | 3.4 | dash | - |
| 20 | 11 | 9 | 4.3 | bash | - |
| 18 | 11 | 8 | 3.4 | zsh | - |
| 20 | 8 | 12 | 12.6 | bumpleak/osh | mut |
| 21 | 17 | 4 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 7 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 11 | 11 | 11.0 | osh-native | mut+alloc |
| 22 | 12 | 11 | 11.0 | osh-native | mut+alloc+free |
| 23 | 16 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 20 | 4 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 24 | 12 | 13 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 19 | 7 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 21 | 18 | 3 | 10.6 | osh-native-souffle | mut+alloc |
| 21 | 17 | 5 | 10.7 | osh-native-souffle | mut+alloc+free |
| 21 | 11 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
| 22 | 11 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |