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 | 4 | 10 | 12.0 | 18.1 | 471,258 | 1,282 | 6 | 413,138 | 5 | 206,569 | osh-native |
| parse.configure-cpython | 34 | 3 | 10 | 12.0 | 18.6 | 471,258 | 1,282 | 6 | 413,146 | 5 | 206,573 | osh-nosouffle |
| parse.configure-coreutils | 132 | 23 | 58 | 45.9 | 51.5 | 1,637,997 | 4,764 | 12 | 1,056,636 | 6 | 787,839 | osh-native |
| parse.configure-coreutils | 147 | 24 | 63 | 45.9 | 52.3 | 1,637,996 | 4,764 | 12 | 1,056,644 | 6 | 787,843 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,786 | 180 | 3 | 86,624 | 1 | 43,312 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,786 | 180 | 3 | 86,632 | 1 | 43,316 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.4 | 572,110 | 22,608 | 12 | 50,000 | 0 | 2,980 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,110 | 22,608 | 12 | 50,000 | 0 | 2,984 | osh-nosouffle |
| ex.bashcomp-parse-help | 225 | 0 | 3 | 11.6 | 9.0 | 990,256 | 15,258 | 21 | 50,000 | 0 | 3,963 | osh-native |
| ex.bashcomp-parse-help | 225 | 0 | 3 | 11.6 | 9.6 | 990,255 | 15,258 | 21 | 50,000 | 0 | 3,967 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.4 | 117,214 | 277 | 3 | 83,986 | 1 | 41,993 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,213 | 277 | 3 | 83,994 | 1 | 41,997 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.7 | dash | - |
| 13 | 11 | 2 | 3.4 | bash | - |
| 89 | 48 | 47 | 3.5 | zsh | - |
| 16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
| 16 | 11 | 5 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 16 | 3 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 17 | 9 | 25.3 | osh-native | mut+alloc |
| 28 | 16 | 12 | 26.0 | osh-native | mut+alloc+free |
| 32 | 26 | 6 | 18.1 | osh-native | mut+alloc+free+gc |
| 34 | 24 | 9 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 29 | 18 | 11 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 22 | 8 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 26 | 8 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 28 | 6 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 23 | 17 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 31 | 17 | 22.7 | _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.7 | dash | - |
| 42 | 42 | 0 | 3.4 | bash | - |
| 329 | 189 | 162 | 3.7 | zsh | - |
| 45 | 34 | 11 | 86.1 | bumpleak/osh | mut |
| 50 | 37 | 13 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 49 | 9 | 87.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 45 | 38 | 73.7 | osh-native | mut+alloc |
| 91 | 57 | 34 | 75.5 | osh-native | mut+alloc+free |
| 132 | 109 | 23 | 51.5 | osh-native | mut+alloc+free+gc |
| 141 | 119 | 22 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 91 | 61 | 30 | 74.1 | osh-nosouffle | mut+alloc |
| 101 | 67 | 33 | 76.0 | osh-nosouffle | mut+alloc+free |
| 147 | 127 | 20 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 148 | 125 | 23 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 85 | 39 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 195 | 151 | 44 | 73.2 | _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 | 4 | 2 | 3.4 | zsh | - |
| 6 | 3 | 2 | 12.6 | bumpleak/osh | mut |
| 6 | 3 | 3 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 4 | 2 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 3 | 5 | 10.5 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.7 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 6 | 4 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 9 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 10 | 2 | 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 | 8 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 18 | 3 | 3.4 | zsh | - |
| 17 | 12 | 5 | 33.5 | bumpleak/osh | mut |
| 18 | 14 | 4 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 17 | 4 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 20 | 8 | 26.7 | osh-native | mut+alloc |
| 30 | 18 | 12 | 27.1 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.4 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 23 | 11 | 27.4 | osh-nosouffle | mut+alloc |
| 35 | 24 | 11 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 21 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 26 | 18 | 36.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 28 | 2 | 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 |
| 103 | 101 | 2 | 3.5 | bash | - |
| 212 | 165 | 47 | 55.9 | bumpleak/osh | mut |
| 220 | 157 | 63 | 57.3 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 179 | 61 | 58.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 174 | 81 | 48.8 | osh-native | mut+alloc |
| 263 | 194 | 69 | 50.9 | osh-native | mut+alloc+free |
| 225 | 182 | 43 | 9.0 | osh-native | mut+alloc+free+gc |
| 223 | 178 | 45 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 261 | 194 | 67 | 49.2 | osh-nosouffle | mut+alloc |
| 271 | 202 | 69 | 51.1 | osh-nosouffle | mut+alloc+free |
| 225 | 186 | 39 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 177 | 51 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 200 | 79 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 248 | 202 | 46 | 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 | 4.1 | dash | - |
| 16 | 8 | 8 | 4.7 | bash | - |
| 16 | 7 | 9 | 3.9 | zsh | - |
| 18 | 10 | 9 | 13.2 | bumpleak/osh | mut |
| 18 | 8 | 10 | 14.4 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 10 | 10 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 8 | 12 | 11.5 | osh-native | mut+alloc |
| 20 | 10 | 11 | 11.7 | osh-native | mut+alloc+free |
| 20 | 10 | 11 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 9 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 9 | 12 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 9 | 13 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 15 | 8 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 10 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 14 | 10 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |