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 | 32 | 3 | 9 | 12.0 | 18.2 | 471,275 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.7 | 471,275 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 140 | 24 | 65 | 45.9 | 51.7 | 1,638,014 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 146 | 25 | 64 | 45.9 | 52.3 | 1,638,013 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,803 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,803 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,127 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 2.8 | 8.7 | 572,127 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 220 | 0 | 4 | 11.6 | 9.2 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 230 | 0 | 4 | 11.6 | 9.6 | 990,272 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.6 | 117,234 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.1 | 117,233 | 277 | 3 | 84,016 | 1 | 42,008 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 7 | 0 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 90 | 51 | 45 | 3.5 | zsh | - |
| 15 | 11 | 4 | 29.2 | bumpleak/osh | mut |
| 16 | 12 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 16 | 3 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 17 | 9 | 25.4 | osh-native | mut+alloc |
| 28 | 19 | 8 | 26.0 | osh-native | mut+alloc+free |
| 32 | 27 | 4 | 18.2 | osh-native | mut+alloc+free+gc |
| 32 | 25 | 7 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 29 | 17 | 12 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 20 | 12 | 26.3 | osh-nosouffle | mut+alloc+free |
| 35 | 31 | 4 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 26 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 27 | 13 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 34 | 11 | 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 | 23 | 0 | 1.7 | dash | - |
| 43 | 41 | 2 | 3.4 | bash | - |
| 325 | 189 | 160 | 3.5 | zsh | - |
| 45 | 34 | 11 | 85.5 | bumpleak/osh | mut |
| 47 | 38 | 9 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 44 | 15 | 87.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 57 | 27 | 73.7 | osh-native | mut+alloc |
| 94 | 57 | 37 | 75.4 | osh-native | mut+alloc+free |
| 140 | 121 | 19 | 51.7 | osh-native | mut+alloc+free+gc |
| 144 | 123 | 21 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 91 | 54 | 36 | 74.2 | osh-nosouffle | mut+alloc |
| 99 | 69 | 31 | 75.9 | osh-nosouffle | mut+alloc+free |
| 146 | 117 | 29 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 151 | 128 | 23 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 127 | 80 | 47 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 169 | 37 | 71.5 | _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.7 | dash | - |
| 4 | 2 | 1 | 3.1 | bash | - |
| 7 | 3 | 4 | 3.4 | zsh | - |
| 6 | 4 | 2 | 11.3 | bumpleak/osh | mut |
| 7 | 4 | 3 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 6 | 2 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.5 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.6 | osh-native | mut+alloc+free |
| 9 | 6 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 4 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 4 | 6 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 5 | 6 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 9 | 3 | 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 |
| 9 | 9 | 0 | 1.4 | dash | - |
| 30 | 29 | 1 | 3.3 | bash | - |
| 21 | 17 | 4 | 3.4 | zsh | - |
| 17 | 14 | 3 | 32.7 | bumpleak/osh | mut |
| 18 | 15 | 3 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 6 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 19 | 9 | 26.9 | osh-native | mut+alloc |
| 31 | 18 | 13 | 27.3 | osh-native | mut+alloc+free |
| 20 | 19 | 1 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 17 | 16 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 24 | 11 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 32 | 13 | 36.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 3 | 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 |
| 104 | 102 | 2 | 3.5 | bash | - |
| 212 | 158 | 54 | 56.7 | bumpleak/osh | mut |
| 220 | 183 | 37 | 56.9 | _bin/cxx-opt+bumproot/osh | mut |
| 238 | 180 | 58 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 253 | 178 | 75 | 48.9 | osh-native | mut+alloc |
| 264 | 196 | 68 | 50.7 | osh-native | mut+alloc+free |
| 220 | 174 | 46 | 9.2 | osh-native | mut+alloc+free+gc |
| 224 | 183 | 40 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 263 | 193 | 70 | 49.3 | osh-nosouffle | mut+alloc |
| 271 | 205 | 66 | 51.1 | osh-nosouffle | mut+alloc+free |
| 230 | 175 | 55 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 183 | 45 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 276 | 203 | 74 | 65.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 250 | 198 | 52 | 10.7 | _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 | 4.1 | dash | - |
| 16 | 7 | 10 | 4.7 | bash | - |
| 16 | 7 | 9 | 3.9 | zsh | - |
| 17 | 5 | 13 | 13.9 | bumpleak/osh | mut |
| 18 | 8 | 10 | 14.4 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 8 | 13 | 14.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 11 | 9 | 11.7 | osh-native | mut+alloc |
| 21 | 10 | 12 | 11.7 | osh-native | mut+alloc+free |
| 20 | 14 | 7 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 11 | 11 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 13 | 9 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 8 | 14 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 15 | 8 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 14 | 10 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 17 | 8 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |