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.5 | 471,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 36 | 4 | 11 | 12.0 | 18.9 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 133 | 24 | 60 | 45.9 | 51.7 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 150 | 25 | 66 | 45.9 | 52.3 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 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.4 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 223 | 0 | 3 | 11.6 | 9.0 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 4 | 11.6 | 9.7 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.4 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.1 | 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 | 6 | 0 | 1.7 | dash | - |
| 13 | 13 | 0 | 3.4 | bash | - |
| 90 | 54 | 42 | 3.5 | zsh | - |
| 15 | 12 | 4 | 30.4 | bumpleak/osh | mut |
| 16 | 11 | 5 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 6 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 11 | 14 | 25.6 | osh-native | mut+alloc |
| 27 | 18 | 9 | 25.7 | osh-native | mut+alloc+free |
| 31 | 22 | 8 | 18.5 | osh-native | mut+alloc+free+gc |
| 31 | 25 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 16 | 13 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 25 | 6 | 26.3 | osh-nosouffle | mut+alloc+free |
| 36 | 24 | 12 | 18.9 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 30 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 27 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 44 | 29 | 16 | 22.5 | _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.6 | dash | - |
| 43 | 42 | 1 | 3.4 | bash | - |
| 326 | 186 | 163 | 3.7 | zsh | - |
| 45 | 37 | 8 | 86.5 | bumpleak/osh | mut |
| 50 | 42 | 8 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 47 | 11 | 87.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 81 | 45 | 35 | 73.7 | osh-native | mut+alloc |
| 91 | 53 | 39 | 75.5 | osh-native | mut+alloc+free |
| 133 | 105 | 28 | 51.7 | osh-native | mut+alloc+free+gc |
| 140 | 109 | 31 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 93 | 58 | 35 | 74.1 | osh-nosouffle | mut+alloc |
| 101 | 62 | 39 | 75.9 | osh-nosouffle | mut+alloc+free |
| 150 | 123 | 27 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 154 | 129 | 25 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 130 | 78 | 52 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 198 | 156 | 41 | 72.4 | _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 | 2 | 1 | 3.1 | bash | - |
| 6 | 5 | 2 | 3.4 | zsh | - |
| 6 | 5 | 1 | 11.8 | bumpleak/osh | mut |
| 7 | 4 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 6 | 1 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 3 | 5 | 10.6 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 8 | 4 | 4 | 10.9 | 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 | 8 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 4 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 5 | 9.6 | _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 | - |
| 30 | 28 | 2 | 3.3 | bash | - |
| 21 | 16 | 5 | 3.4 | zsh | - |
| 16 | 12 | 5 | 33.5 | bumpleak/osh | mut |
| 18 | 14 | 3 | 33.8 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 18 | 3 | 33.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 20 | 9 | 26.9 | osh-native | mut+alloc |
| 30 | 19 | 11 | 27.3 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.4 | osh-native | mut+alloc+free+gc |
| 19 | 17 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 24 | 9 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 21 | 14 | 27.6 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 38 | 36 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 32 | 13 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 4 | 9.8 | _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 |
| 105 | 101 | 4 | 3.5 | bash | - |
| 211 | 175 | 36 | 57.6 | bumpleak/osh | mut |
| 221 | 168 | 53 | 57.2 | _bin/cxx-opt+bumproot/osh | mut |
| 241 | 190 | 51 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 169 | 86 | 48.6 | osh-native | mut+alloc |
| 263 | 191 | 72 | 50.7 | osh-native | mut+alloc+free |
| 223 | 171 | 52 | 9.0 | osh-native | mut+alloc+free+gc |
| 222 | 181 | 41 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 262 | 197 | 65 | 49.3 | osh-nosouffle | mut+alloc |
| 269 | 199 | 70 | 51.1 | osh-nosouffle | mut+alloc+free |
| 227 | 184 | 43 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 229 | 189 | 40 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 281 | 210 | 71 | 64.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 252 | 202 | 50 | 10.5 | _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 | 4 | 5 | 3.9 | dash | - |
| 16 | 10 | 6 | 4.8 | bash | - |
| 15 | 8 | 8 | 3.9 | zsh | - |
| 17 | 8 | 10 | 12.3 | bumpleak/osh | mut |
| 17 | 8 | 10 | 14.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 10 | 10 | 14.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 10 | 10 | 11.5 | osh-native | mut+alloc |
| 20 | 9 | 12 | 11.7 | osh-native | mut+alloc+free |
| 20 | 11 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 10 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 10 | 11 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 9 | 13 | 12.1 | osh-nosouffle | mut+alloc+free |
| 22 | 11 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 13 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 10 | 13 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 14 | 11 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |