Source code: oils/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 | 31 | 3 | 9 | 12.0 | 18.4 | 471,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 18.7 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 143 | 26 | 69 | 45.9 | 51.7 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 142 | 23 | 60 | 45.9 | 52.4 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,791 | 180 | 3 | 86,628 | 1 | 43,314 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,791 | 180 | 3 | 86,636 | 1 | 43,318 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 2.8 | 8.8 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 224 | 0 | 4 | 11.6 | 9.0 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 229 | 0 | 4 | 11.6 | 9.6 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 9.3 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.0 | 117,218 | 277 | 3 | 83,998 | 1 | 41,999 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 7 | 0 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 89 | 50 | 46 | 3.5 | zsh | - |
| 16 | 12 | 3 | 30.3 | bumpleak/osh | mut |
| 16 | 12 | 4 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 14 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 18 | 8 | 25.4 | osh-native | mut+alloc |
| 28 | 13 | 15 | 25.8 | osh-native | mut+alloc+free |
| 31 | 21 | 10 | 18.4 | osh-native | mut+alloc+free+gc |
| 32 | 27 | 5 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 20 | 8 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 19 | 11 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 31 | 3 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 25 | 10 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 22 | 18 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 32 | 15 | 22.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 |
| 23 | 22 | 1 | 1.8 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 329 | 191 | 162 | 3.7 | zsh | - |
| 45 | 38 | 7 | 86.1 | bumpleak/osh | mut |
| 49 | 38 | 11 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 42 | 16 | 84.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 81 | 43 | 39 | 73.5 | osh-native | mut+alloc |
| 91 | 56 | 35 | 75.5 | osh-native | mut+alloc+free |
| 143 | 121 | 22 | 51.7 | osh-native | mut+alloc+free+gc |
| 141 | 121 | 19 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 94 | 57 | 33 | 74.2 | osh-nosouffle | mut+alloc |
| 100 | 65 | 35 | 76.2 | osh-nosouffle | mut+alloc+free |
| 142 | 113 | 29 | 52.4 | osh-nosouffle | mut+alloc+free+gc |
| 153 | 131 | 22 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 123 | 79 | 44 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 192 | 160 | 32 | 73.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing abuild from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 2 | 1 | 1 | 1.6 | dash | - |
| 4 | 3 | 1 | 3.1 | bash | - |
| 6 | 2 | 5 | 3.4 | zsh | - |
| 6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
| 6 | 3 | 3 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.4 | osh-native | mut+alloc |
| 8 | 6 | 3 | 10.6 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 8 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 11 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 19 | 2 | 3.4 | zsh | - |
| 17 | 16 | 1 | 33.1 | bumpleak/osh | mut |
| 19 | 15 | 4 | 33.5 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 18 | 3 | 34.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 20 | 8 | 26.9 | osh-native | mut+alloc |
| 30 | 22 | 8 | 27.0 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 20 | 13 | 27.3 | osh-nosouffle | mut+alloc |
| 38 | 27 | 10 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 20 | 4 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 19 | 6 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 30 | 15 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 3 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 103 | 99 | 4 | 3.4 | bash | - |
| 213 | 158 | 55 | 56.5 | bumpleak/osh | mut |
| 223 | 173 | 50 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 185 | 55 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 256 | 192 | 65 | 48.8 | osh-native | mut+alloc |
| 263 | 182 | 81 | 50.7 | osh-native | mut+alloc+free |
| 224 | 191 | 32 | 9.0 | osh-native | mut+alloc+free+gc |
| 222 | 168 | 54 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 265 | 194 | 71 | 49.3 | osh-nosouffle | mut+alloc |
| 274 | 193 | 81 | 51.2 | osh-nosouffle | mut+alloc+free |
| 229 | 174 | 55 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 179 | 48 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 189 | 88 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 250 | 214 | 36 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 9 | 5 | 5 | 3.9 | dash | - |
| 16 | 9 | 7 | 4.8 | bash | - |
| 16 | 7 | 9 | 3.9 | zsh | - |
| 19 | 5 | 14 | 13.5 | bumpleak/osh | mut |
| 18 | 9 | 9 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 7 | 12 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 12 | 8 | 11.5 | osh-native | mut+alloc |
| 21 | 7 | 14 | 11.7 | osh-native | mut+alloc+free |
| 22 | 11 | 12 | 9.3 | osh-native | mut+alloc+free+gc |
| 22 | 12 | 10 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 10 | 11 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 8 | 14 | 12.2 | osh-nosouffle | mut+alloc+free |
| 22 | 13 | 10 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 12 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 13 | 12 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |