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 | 35 | 4 | 10 | 12.0 | 18.7 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 136 | 25 | 63 | 45.9 | 51.9 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 149 | 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 | 2 | 2.8 | 8.1 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 24 | 0 | 1 | 2.8 | 8.7 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 3 | 11.6 | 9.0 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 225 | 0 | 4 | 11.6 | 9.6 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.6 | 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 |
| 7 | 7 | 0 | 1.7 | dash | - |
| 13 | 13 | 0 | 3.3 | bash | - |
| 90 | 50 | 48 | 3.4 | zsh | - |
| 15 | 12 | 3 | 29.5 | bumpleak/osh | mut |
| 17 | 13 | 4 | 30.7 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 6 | 30.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 15 | 10 | 25.4 | osh-native | mut+alloc |
| 28 | 18 | 10 | 25.7 | osh-native | mut+alloc+free |
| 31 | 27 | 4 | 18.4 | osh-native | mut+alloc+free+gc |
| 32 | 23 | 9 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 29 | 21 | 8 | 26.1 | osh-nosouffle | mut+alloc |
| 30 | 19 | 11 | 26.2 | osh-nosouffle | mut+alloc+free |
| 35 | 30 | 5 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 29 | 8 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 28 | 11 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 31 | 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 | 23 | 0 | 1.6 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 342 | 198 | 169 | 3.8 | zsh | - |
| 45 | 38 | 7 | 86.3 | bumpleak/osh | mut |
| 49 | 35 | 14 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 46 | 13 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 49 | 33 | 73.8 | osh-native | mut+alloc |
| 89 | 60 | 29 | 75.5 | osh-native | mut+alloc+free |
| 136 | 112 | 23 | 51.9 | osh-native | mut+alloc+free+gc |
| 145 | 121 | 24 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 91 | 62 | 29 | 74.1 | osh-nosouffle | mut+alloc |
| 99 | 68 | 31 | 76.0 | osh-nosouffle | mut+alloc+free |
| 149 | 115 | 34 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 161 | 139 | 22 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 74 | 51 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 194 | 157 | 37 | 71.8 | _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 | 2 | 0 | 1.6 | dash | - |
| 4 | 3 | 1 | 3.1 | bash | - |
| 7 | 3 | 4 | 3.4 | zsh | - |
| 6 | 4 | 2 | 11.9 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.6 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 4 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 6 | 3 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 5 | 6 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 9 | 3 | 9.4 | _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 | 9 | 1 | 1.4 | dash | - |
| 30 | 30 | 0 | 3.3 | bash | - |
| 21 | 14 | 7 | 3.4 | zsh | - |
| 16 | 13 | 3 | 33.5 | bumpleak/osh | mut |
| 18 | 14 | 4 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 19 | 2 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 22 | 6 | 26.9 | osh-native | mut+alloc |
| 31 | 16 | 14 | 27.1 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 21 | 12 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 24 | 11 | 27.4 | osh-nosouffle | mut+alloc+free |
| 24 | 22 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 21 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 48 | 37 | 11 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 28 | 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 |
| 105 | 102 | 3 | 3.4 | bash | - |
| 211 | 163 | 48 | 57.1 | bumpleak/osh | mut |
| 222 | 173 | 49 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
| 243 | 178 | 65 | 57.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 185 | 70 | 48.9 | osh-native | mut+alloc |
| 265 | 192 | 72 | 50.7 | osh-native | mut+alloc+free |
| 221 | 173 | 47 | 9.0 | osh-native | mut+alloc+free+gc |
| 222 | 173 | 48 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 264 | 179 | 85 | 49.3 | osh-nosouffle | mut+alloc |
| 271 | 202 | 69 | 51.3 | osh-nosouffle | mut+alloc+free |
| 225 | 178 | 47 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 186 | 40 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 280 | 205 | 75 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 250 | 200 | 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 | 3 | 6 | 3.9 | dash | - |
| 16 | 9 | 7 | 5.0 | bash | - |
| 15 | 6 | 10 | 3.8 | zsh | - |
| 17 | 9 | 9 | 14.0 | bumpleak/osh | mut |
| 19 | 7 | 12 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 10 | 10 | 14.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 11 | 9 | 11.4 | osh-native | mut+alloc |
| 20 | 10 | 11 | 11.7 | osh-native | mut+alloc+free |
| 20 | 14 | 7 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 9 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 7 | 13 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 13 | 9 | 12.1 | osh-nosouffle | mut+alloc+free |
| 22 | 10 | 13 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 10 | 12 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 13 | 11 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 9 | 15 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |