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.1 | 476,745 | 1,282 | 6 | 406,318 | 5 | 203,159 | osh-native |
| parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,745 | 1,282 | 6 | 406,188 | 5 | 203,094 | osh-native-souffle |
| parse.configure-coreutils | 158 | 24 | 72 | 44.5 | 49.7 | 1,653,333 | 4,764 | 12 | 1,025,514 | 6 | 764,300 | osh-native |
| parse.configure-coreutils | 143 | 25 | 66 | 45.9 | 51.0 | 1,653,332 | 4,764 | 12 | 1,063,844 | 6 | 792,360 | osh-native-souffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.5 | 101,936 | 180 | 2 | 75,018 | 1 | 37,509 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.4 | 8.0 | 101,936 | 180 | 3 | 87,080 | 1 | 43,540 | osh-native-souffle |
| ex.compute-fib | 28 | 0 | 2 | 2.1 | 7.6 | 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 | 183 | 0 | 4 | 10.3 | 8.8 | 995,282 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
| ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.4 | 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 | 22 | 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 | 6 | 0 | 1.4 | dash | - |
| 23 | 23 | 0 | 3.1 | bash | - |
| 105 | 57 | 54 | 3.4 | zsh | - |
| 17 | 12 | 4 | 28.3 | bumpleak/osh | mut |
| 19 | 19 | 0 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 22 | 0 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 30 | 0 | 25.2 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
| 36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
| 38 | 30 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 43 | 35 | 8 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 54 | 50 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 27 | 13 | 13 | 24.9 | osh-native-souffle | mut+alloc |
| 28 | 20 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
| 33 | 25 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
| 33 | 25 | 8 | 17.7 | 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 |
| 21 | 21 | 0 | 1.6 | dash | - |
| 78 | 74 | 4 | 3.3 | bash | - |
| 380 | 224 | 179 | 3.7 | zsh | - |
| 49 | 30 | 19 | 85.3 | bumpleak/osh | mut |
| 58 | 54 | 4 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 59 | 12 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 56 | 40 | 73.4 | osh-native | mut+alloc |
| 106 | 71 | 35 | 75.2 | osh-native | mut+alloc+free |
| 158 | 138 | 20 | 49.7 | osh-native | mut+alloc+free+gc |
| 169 | 145 | 23 | 50.3 | osh-native | mut+alloc+free+gc+exit |
| 139 | 79 | 59 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 224 | 199 | 24 | 67.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 88 | 48 | 40 | 73.0 | osh-native-souffle | mut+alloc |
| 96 | 64 | 32 | 74.9 | osh-native-souffle | mut+alloc+free |
| 143 | 127 | 16 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
| 141 | 102 | 39 | 51.7 | 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 | 4 | 4 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
| 7 | 7 | 0 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
| 10 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 8 | 4 | 4 | 9.4 | osh-native-souffle | mut+alloc |
| 8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
| 10 | 10 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
| 9 | 3 | 6 | 8.1 | 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 | 7 | 3 | 1.6 | dash | - |
| 29 | 29 | 0 | 3.0 | bash | - |
| 23 | 12 | 12 | 3.3 | zsh | - |
| 19 | 11 | 8 | 32.0 | bumpleak/osh | mut |
| 27 | 19 | 8 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 28 | 0 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
| 37 | 21 | 17 | 26.5 | osh-native | mut+alloc+free |
| 28 | 28 | 0 | 7.6 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 54 | 31 | 23 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 33 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 31 | 15 | 15 | 25.8 | osh-native-souffle | mut+alloc |
| 33 | 25 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
| 22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
| 23 | 11 | 11 | 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 |
| 73 | 73 | 0 | 3.1 | bash | - |
| 167 | 118 | 49 | 54.1 | bumpleak/osh | mut |
| 182 | 127 | 55 | 56.7 | _bin/cxx-opt+bumproot/osh | mut |
| 195 | 107 | 87 | 56.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 129 | 81 | 47.4 | osh-native | mut+alloc |
| 220 | 136 | 84 | 49.1 | osh-native | mut+alloc+free |
| 183 | 127 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
| 181 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 233 | 166 | 67 | 63.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 213 | 129 | 84 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 205 | 117 | 88 | 46.9 | osh-native-souffle | mut+alloc |
| 211 | 167 | 44 | 48.7 | osh-native-souffle | mut+alloc+free |
| 175 | 131 | 44 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
| 175 | 91 | 83 | 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 | 8 | 2 | 3.4 | dash | - |
| 20 | 19 | 1 | 4.3 | bash | - |
| 17 | 15 | 3 | 3.4 | zsh | - |
| 18 | 12 | 7 | 11.8 | bumpleak/osh | mut |
| 19 | 17 | 3 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 21 | 2 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 17 | 5 | 11.1 | osh-native | mut+alloc |
| 23 | 11 | 12 | 11.3 | osh-native | mut+alloc+free |
| 23 | 18 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 21 | 3 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 25 | 16 | 10 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 19 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 20 | 11 | 9 | 10.5 | osh-native-souffle | mut+alloc |
| 22 | 14 | 8 | 10.9 | osh-native-souffle | mut+alloc+free |
| 22 | 15 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
| 23 | 22 | 1 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |