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 | 35 | 4 | 9 | 12.0 | 18.0 | 476,745 | 1,282 | 6 | 406,318 | 5 | 203,159 | osh-native |
| parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.6 | 476,745 | 1,282 | 6 | 406,188 | 5 | 203,094 | osh-native-souffle |
| parse.configure-coreutils | 156 | 26 | 70 | 44.5 | 49.7 | 1,653,333 | 4,764 | 12 | 1,025,514 | 6 | 764,300 | osh-native |
| parse.configure-coreutils | 149 | 27 | 69 | 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 | 27 | 0 | 1 | 2.1 | 8.1 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,913 | osh-native |
| ex.compute-fib | 21 | 0 | 1 | 2.1 | 7.5 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,851 | osh-native-souffle |
| ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.8 | 995,282 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
| ex.bashcomp-parse-help | 178 | 0 | 3 | 10.3 | 8.3 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,312 | 277 | 3 | 85,236 | 1 | 42,618 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 |
| 6 | 6 | 0 | 1.4 | dash | - |
| 23 | 23 | 0 | 2.9 | bash | - |
| 106 | 63 | 50 | 3.4 | zsh | - |
| 17 | 17 | 0 | 29.3 | bumpleak/osh | mut |
| 20 | 15 | 5 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 23 | 0 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 17 | 13 | 25.3 | osh-native | mut+alloc |
| 32 | 28 | 4 | 25.6 | osh-native | mut+alloc+free |
| 35 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
| 37 | 32 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 46 | 4 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 27 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
| 29 | 8 | 21 | 25.3 | osh-native-souffle | mut+alloc+free |
| 33 | 32 | 0 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
| 34 | 30 | 4 | 17.8 | 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 | 21 | 0 | 1.6 | dash | - |
| 78 | 74 | 4 | 3.0 | bash | - |
| 380 | 215 | 185 | 3.4 | zsh | - |
| 49 | 45 | 4 | 86.0 | bumpleak/osh | mut |
| 58 | 50 | 8 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 61 | 8 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 99 | 75 | 24 | 73.6 | osh-native | mut+alloc |
| 105 | 73 | 32 | 75.4 | osh-native | mut+alloc+free |
| 156 | 144 | 12 | 49.7 | osh-native | mut+alloc+free+gc |
| 160 | 137 | 23 | 50.5 | osh-native | mut+alloc+free+gc+exit |
| 138 | 109 | 28 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 221 | 185 | 35 | 68.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 89 | 54 | 35 | 73.3 | osh-native-souffle | mut+alloc |
| 97 | 78 | 19 | 74.8 | osh-native-souffle | mut+alloc+free |
| 149 | 121 | 27 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
| 148 | 124 | 24 | 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.3 | dash | - |
| 6 | 6 | 0 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 5 | 3 | 3 | 11.8 | bumpleak/osh | mut |
| 7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 10.2 | osh-native | mut+alloc |
| 8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
| 8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
| 9 | 4 | 4 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
| 9 | 9 | 0 | 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 | - |
| 29 | 29 | 0 | 2.8 | bash | - |
| 24 | 20 | 4 | 3.3 | zsh | - |
| 19 | 9 | 9 | 32.3 | bumpleak/osh | mut |
| 27 | 23 | 4 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 23 | 5 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
| 37 | 28 | 8 | 26.6 | osh-native | mut+alloc+free |
| 27 | 27 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
| 29 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 54 | 35 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 32 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 30 | 30 | 0 | 25.8 | osh-native-souffle | mut+alloc |
| 31 | 27 | 4 | 26.1 | osh-native-souffle | mut+alloc+free |
| 21 | 17 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
| 21 | 17 | 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 |
| 73 | 69 | 4 | 3.1 | bash | - |
| 171 | 99 | 71 | 55.4 | bumpleak/osh | mut |
| 183 | 131 | 52 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
| 195 | 119 | 76 | 55.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 138 | 71 | 47.4 | osh-native | mut+alloc |
| 219 | 127 | 92 | 49.1 | osh-native | mut+alloc+free |
| 181 | 137 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
| 183 | 151 | 32 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 236 | 164 | 72 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 210 | 150 | 59 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 205 | 144 | 60 | 46.9 | osh-native-souffle | mut+alloc |
| 210 | 121 | 89 | 48.7 | osh-native-souffle | mut+alloc+free |
| 178 | 142 | 36 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
| 176 | 120 | 56 | 8.3 | 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 | 10 | 0 | 3.4 | dash | - |
| 20 | 12 | 8 | 4.5 | bash | - |
| 18 | 8 | 11 | 3.5 | zsh | - |
| 18 | 16 | 3 | 11.4 | bumpleak/osh | mut |
| 21 | 14 | 7 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 17 | 5 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 15 | 6 | 11.1 | osh-native | mut+alloc |
| 22 | 8 | 15 | 11.3 | osh-native | mut+alloc+free |
| 22 | 15 | 8 | 9.2 | osh-native | mut+alloc+free+gc |
| 23 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 25 | 12 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 21 | 4 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 20 | 12 | 8 | 10.6 | osh-native-souffle | mut+alloc |
| 21 | 14 | 8 | 10.7 | osh-native-souffle | mut+alloc+free |
| 21 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
| 22 | 10 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |