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 | 17.8 | 476,745 | 1,282 | 6 | 406,318 | 5 | 203,159 | osh-native |
| parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,745 | 1,282 | 6 | 406,188 | 5 | 203,094 | osh-native-souffle |
| parse.configure-coreutils | 144 | 22 | 59 | 44.5 | 49.8 | 1,653,333 | 4,764 | 12 | 1,025,514 | 6 | 764,300 | osh-native |
| parse.configure-coreutils | 137 | 24 | 60 | 45.9 | 50.9 | 1,653,332 | 4,764 | 12 | 1,063,844 | 6 | 792,360 | osh-native-souffle |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 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 | 28 | 0 | 2 | 2.1 | 8.0 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,913 | osh-native |
| ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.5 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,851 | osh-native-souffle |
| ex.bashcomp-parse-help | 183 | 0 | 3 | 10.3 | 8.7 | 995,282 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
| ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.1 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 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.6 | dash | - |
| 23 | 23 | 0 | 3.0 | bash | - |
| 105 | 54 | 57 | 3.5 | zsh | - |
| 16 | 8 | 8 | 29.1 | bumpleak/osh | mut |
| 19 | 15 | 4 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 22 | 0 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
| 31 | 22 | 9 | 25.7 | osh-native | mut+alloc+free |
| 36 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
| 37 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 51 | 42 | 8 | 22.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 28 | 16 | 12 | 24.8 | osh-native-souffle | mut+alloc |
| 29 | 14 | 14 | 25.3 | osh-native-souffle | mut+alloc+free |
| 32 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
| 34 | 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 |
| 22 | 21 | 0 | 1.4 | dash | - |
| 77 | 73 | 4 | 3.3 | bash | - |
| 380 | 242 | 161 | 3.7 | zsh | - |
| 49 | 38 | 11 | 84.3 | bumpleak/osh | mut |
| 60 | 48 | 12 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
| 69 | 53 | 16 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 95 | 59 | 36 | 73.5 | osh-native | mut+alloc |
| 105 | 80 | 24 | 75.4 | osh-native | mut+alloc+free |
| 144 | 120 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
| 151 | 123 | 28 | 50.3 | osh-native | mut+alloc+free+gc+exit |
| 139 | 115 | 24 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 217 | 184 | 32 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 87 | 48 | 40 | 73.1 | osh-native-souffle | mut+alloc |
| 95 | 67 | 28 | 74.9 | osh-native-souffle | mut+alloc+free |
| 137 | 129 | 8 | 50.9 | osh-native-souffle | mut+alloc+free+gc |
| 143 | 119 | 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 | 2 | 0 | 1.4 | dash | - |
| 6 | 3 | 3 | 2.9 | bash | - |
| 7 | 8 | 0 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.5 | bumpleak/osh | mut |
| 6 | 3 | 3 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 4 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
| 9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
| 9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 4 | 8 | 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.6 | osh-native-souffle | mut+alloc+free |
| 9 | 5 | 5 | 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 | 25 | 4 | 3.0 | bash | - |
| 23 | 16 | 8 | 3.3 | zsh | - |
| 19 | 19 | 0 | 31.8 | bumpleak/osh | mut |
| 26 | 17 | 9 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 27 | 0 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 20 | 16 | 26.5 | osh-native | mut+alloc |
| 37 | 24 | 12 | 26.6 | osh-native | mut+alloc+free |
| 28 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 53 | 29 | 25 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 30 | 11 | 19 | 26.0 | osh-native-souffle | mut+alloc |
| 31 | 26 | 4 | 26.2 | osh-native-souffle | mut+alloc+free |
| 22 | 22 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
| 22 | 17 | 4 | 7.5 | 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 |
| 72 | 64 | 8 | 3.0 | bash | - |
| 168 | 112 | 56 | 55.0 | bumpleak/osh | mut |
| 182 | 130 | 51 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 137 | 56 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 212 | 140 | 72 | 47.3 | osh-native | mut+alloc |
| 218 | 145 | 73 | 49.1 | osh-native | mut+alloc+free |
| 183 | 127 | 55 | 8.7 | osh-native | mut+alloc+free+gc |
| 184 | 152 | 32 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 235 | 139 | 96 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 212 | 136 | 76 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 208 | 144 | 64 | 46.9 | osh-native-souffle | mut+alloc |
| 210 | 121 | 89 | 48.5 | osh-native-souffle | mut+alloc+free |
| 175 | 131 | 44 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
| 174 | 142 | 32 | 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 | 9 | 1 | 3.5 | dash | - |
| 20 | 11 | 9 | 4.5 | bash | - |
| 17 | 16 | 2 | 3.5 | zsh | - |
| 18 | 6 | 12 | 11.8 | bumpleak/osh | mut |
| 19 | 15 | 4 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 6 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 14 | 8 | 11.0 | osh-native | mut+alloc |
| 22 | 20 | 3 | 11.1 | osh-native | mut+alloc+free |
| 22 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
| 23 | 14 | 9 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 25 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 20 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 20 | 15 | 6 | 10.6 | osh-native-souffle | mut+alloc |
| 21 | 19 | 2 | 10.7 | osh-native-souffle | mut+alloc+free |
| 21 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
| 22 | 13 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |