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 | 34 | 4 | 11 | 12.0 | 18.4 | 471,276 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 36 | 4 | 11 | 12.0 | 18.7 | 471,276 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 140 | 24 | 65 | 45.9 | 51.7 | 1,638,015 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 150 | 26 | 67 | 45.9 | 52.1 | 1,638,014 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,804 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,804 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.1 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.5 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 4 | 11.6 | 8.9 | 990,274 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 228 | 0 | 4 | 11.6 | 9.7 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,235 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,234 | 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.4 | bash | - |
| 88 | 53 | 42 | 3.5 | zsh | - |
| 15 | 14 | 1 | 30.3 | bumpleak/osh | mut |
| 16 | 14 | 2 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 13 | 6 | 29.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 14 | 12 | 25.6 | osh-native | mut+alloc |
| 28 | 17 | 11 | 25.8 | osh-native | mut+alloc+free |
| 34 | 28 | 6 | 18.4 | osh-native | mut+alloc+free+gc |
| 33 | 29 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 28 | 18 | 10 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 22 | 8 | 26.3 | osh-nosouffle | mut+alloc+free |
| 36 | 29 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 32 | 5 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 27 | 13 | 33.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 38 | 7 | 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 | 21 | 2 | 1.7 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 329 | 184 | 167 | 3.7 | zsh | - |
| 46 | 39 | 7 | 85.7 | bumpleak/osh | mut |
| 49 | 39 | 10 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 44 | 16 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 87 | 54 | 33 | 73.7 | osh-native | mut+alloc |
| 93 | 68 | 25 | 75.6 | osh-native | mut+alloc+free |
| 140 | 120 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
| 147 | 119 | 27 | 52.7 | osh-native | mut+alloc+free+gc+exit |
| 93 | 63 | 31 | 74.1 | osh-nosouffle | mut+alloc |
| 102 | 55 | 47 | 75.9 | osh-nosouffle | mut+alloc+free |
| 150 | 130 | 20 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 152 | 128 | 24 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 127 | 83 | 44 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 205 | 168 | 37 | 73.9 | _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 | - |
| 6 | 6 | 0 | 3.4 | zsh | - |
| 6 | 2 | 4 | 11.7 | bumpleak/osh | mut |
| 6 | 6 | 0 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 6 | 2 | 10.6 | osh-native | mut+alloc |
| 8 | 6 | 2 | 10.7 | osh-native | mut+alloc+free |
| 9 | 6 | 4 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 5 | 3 | 10.7 | osh-nosouffle | mut+alloc |
| 9 | 5 | 3 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 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 |
| 9 | 9 | 0 | 1.6 | dash | - |
| 30 | 30 | 0 | 3.4 | bash | - |
| 21 | 16 | 5 | 3.5 | zsh | - |
| 17 | 12 | 5 | 32.5 | bumpleak/osh | mut |
| 18 | 15 | 3 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 13 | 7 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 16 | 13 | 26.9 | osh-native | mut+alloc |
| 31 | 23 | 8 | 27.2 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 22 | 12 | 27.4 | osh-nosouffle | mut+alloc |
| 35 | 24 | 11 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 20 | 5 | 8.5 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 20 | 6 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 29 | 17 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 4 | 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 |
| 104 | 99 | 5 | 3.4 | bash | - |
| 213 | 158 | 55 | 57.9 | bumpleak/osh | mut |
| 229 | 181 | 47 | 57.8 | _bin/cxx-opt+bumproot/osh | mut |
| 242 | 193 | 49 | 58.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 258 | 185 | 73 | 48.8 | osh-native | mut+alloc |
| 266 | 207 | 58 | 50.7 | osh-native | mut+alloc+free |
| 222 | 162 | 60 | 8.9 | osh-native | mut+alloc+free+gc |
| 222 | 175 | 46 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 177 | 85 | 49.4 | osh-nosouffle | mut+alloc |
| 271 | 205 | 66 | 51.1 | osh-nosouffle | mut+alloc+free |
| 228 | 186 | 42 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 231 | 188 | 43 | 9.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 277 | 205 | 72 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 252 | 203 | 49 | 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 | 6 | 3.9 | dash | - |
| 16 | 6 | 10 | 4.7 | bash | - |
| 15 | 8 | 8 | 4.1 | zsh | - |
| 18 | 4 | 14 | 13.0 | bumpleak/osh | mut |
| 17 | 7 | 11 | 14.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 10 | 11 | 14.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 11 | 9 | 11.5 | osh-native | mut+alloc |
| 21 | 8 | 14 | 11.7 | osh-native | mut+alloc+free |
| 21 | 12 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 22 | 13 | 9 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 11 | 10 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 12 | 10 | 12.3 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 12 | 11 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 12 | 12 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 11 | 14 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |