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 | 33 | 3 | 9 | 12.0 | 18.0 | 476,745 | 1,282 | 6 | 406,318 | 5 | 203,159 | osh-native |
| parse.configure-cpython | 31 | 4 | 10 | 12.0 | 17.4 | 476,745 | 1,282 | 6 | 406,188 | 5 | 203,094 | osh-native-souffle |
| parse.configure-coreutils | 144 | 22 | 58 | 44.5 | 49.8 | 1,653,333 | 4,764 | 12 | 1,025,514 | 6 | 764,300 | osh-native |
| parse.configure-coreutils | 138 | 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.5 | 101,936 | 180 | 2 | 75,018 | 1 | 37,509 | osh-native |
| parse.abuild | 8 | 1 | 2 | 2.4 | 8.0 | 101,936 | 180 | 3 | 87,080 | 1 | 43,540 | osh-native-souffle |
| ex.compute-fib | 26 | 0 | 1 | 2.1 | 8.1 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,913 | osh-native |
| ex.compute-fib | 21 | 0 | 2 | 2.1 | 7.5 | 579,600 | 22,608 | 12 | 50,000 | 0 | 2,851 | osh-native-souffle |
| ex.bashcomp-parse-help | 176 | 0 | 3 | 10.3 | 8.7 | 995,282 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
| ex.bashcomp-parse-help | 168 | 0 | 3 | 10.3 | 8.1 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
| ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 9.0 | 116,312 | 277 | 3 | 85,236 | 1 | 42,618 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.4 | 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 | - |
| 103 | 55 | 54 | 3.4 | zsh | - |
| 17 | 8 | 8 | 29.7 | bumpleak/osh | mut |
| 19 | 14 | 5 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 17 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 24 | 4 | 25.2 | osh-native | mut+alloc |
| 29 | 25 | 4 | 25.4 | osh-native | mut+alloc+free |
| 33 | 25 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 33 | 22 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 41 | 24 | 16 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 44 | 32 | 12 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 26 | 9 | 17 | 25.0 | osh-native-souffle | mut+alloc |
| 26 | 7 | 19 | 25.3 | osh-native-souffle | mut+alloc+free |
| 31 | 27 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
| 32 | 28 | 4 | 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 |
| 20 | 17 | 3 | 1.6 | dash | - |
| 74 | 74 | 0 | 3.3 | bash | - |
| 367 | 219 | 169 | 3.5 | zsh | - |
| 48 | 44 | 4 | 85.3 | bumpleak/osh | mut |
| 56 | 44 | 12 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
| 66 | 50 | 15 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 93 | 72 | 20 | 73.5 | osh-native | mut+alloc |
| 105 | 60 | 44 | 75.4 | osh-native | mut+alloc+free |
| 144 | 136 | 8 | 49.8 | osh-native | mut+alloc+free+gc |
| 141 | 117 | 23 | 50.3 | osh-native | mut+alloc+free+gc+exit |
| 140 | 112 | 28 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 198 | 145 | 52 | 68.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 83 | 51 | 32 | 73.1 | osh-native-souffle | mut+alloc |
| 93 | 60 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
| 138 | 113 | 24 | 50.9 | osh-native-souffle | mut+alloc+free+gc |
| 141 | 104 | 36 | 51.6 | 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.3 | dash | - |
| 5 | 5 | 0 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.4 | zsh | - |
| 6 | 6 | 0 | 10.8 | bumpleak/osh | mut |
| 6 | 3 | 3 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 3 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
| 8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
| 9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 11 | 0 | 11 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 7 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 7 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
| 7 | 0 | 7 | 9.7 | osh-native-souffle | mut+alloc+free |
| 8 | 8 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
| 9 | 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 | - |
| 29 | 29 | 0 | 2.9 | bash | - |
| 24 | 20 | 4 | 3.1 | zsh | - |
| 19 | 7 | 11 | 31.6 | bumpleak/osh | mut |
| 25 | 25 | 0 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
| 27 | 23 | 4 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 34 | 26 | 9 | 26.2 | osh-native | mut+alloc |
| 35 | 19 | 15 | 26.6 | osh-native | mut+alloc+free |
| 26 | 22 | 4 | 8.1 | osh-native | mut+alloc+free+gc |
| 26 | 19 | 7 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 52 | 39 | 12 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 35 | 30 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 28 | 16 | 12 | 26.0 | osh-native-souffle | mut+alloc |
| 29 | 16 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
| 21 | 21 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
| 21 | 18 | 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 |
| 69 | 65 | 4 | 3.1 | bash | - |
| 159 | 92 | 68 | 55.1 | bumpleak/osh | mut |
| 172 | 124 | 48 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
| 192 | 116 | 76 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 202 | 119 | 83 | 47.4 | osh-native | mut+alloc |
| 214 | 119 | 95 | 49.0 | osh-native | mut+alloc+free |
| 176 | 120 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
| 176 | 100 | 76 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 230 | 147 | 83 | 62.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 150 | 57 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 190 | 133 | 56 | 46.9 | osh-native-souffle | mut+alloc |
| 201 | 148 | 52 | 48.6 | osh-native-souffle | mut+alloc+free |
| 168 | 124 | 44 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
| 164 | 120 | 44 | 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 |
| 9 | 4 | 5 | 3.4 | dash | - |
| 18 | 12 | 7 | 4.3 | bash | - |
| 16 | 10 | 6 | 3.5 | zsh | - |
| 17 | 7 | 10 | 12.0 | bumpleak/osh | mut |
| 18 | 10 | 7 | 13.9 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 13 | 7 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 11 | 9 | 11.1 | osh-native | mut+alloc |
| 20 | 16 | 5 | 11.3 | osh-native | mut+alloc+free |
| 20 | 15 | 6 | 9.0 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 10 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 23 | 15 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 16 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 19 | 11 | 8 | 10.6 | osh-native-souffle | mut+alloc |
| 21 | 5 | 16 | 10.7 | osh-native-souffle | mut+alloc+free |
| 22 | 17 | 5 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
| 22 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |