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.0 | 471,254 | 1,282 | 6 | 413,136 | 5 | 206,568 | osh-native |
| parse.configure-cpython | 37 | 4 | 10 | 12.0 | 18.6 | 471,254 | 1,282 | 6 | 413,144 | 5 | 206,572 | osh-nosouffle |
| parse.configure-coreutils | 140 | 24 | 64 | 45.9 | 51.7 | 1,637,993 | 4,764 | 12 | 1,056,634 | 6 | 787,838 | osh-native |
| parse.configure-coreutils | 145 | 24 | 62 | 45.9 | 52.0 | 1,637,992 | 4,764 | 12 | 1,056,642 | 6 | 787,842 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,782 | 180 | 3 | 86,622 | 1 | 43,311 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,782 | 180 | 3 | 86,630 | 1 | 43,315 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.1 | 572,106 | 22,608 | 12 | 50,000 | 0 | 2,979 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,106 | 22,608 | 12 | 50,000 | 0 | 2,983 | osh-nosouffle |
| ex.bashcomp-parse-help | 228 | 0 | 4 | 11.6 | 9.0 | 990,252 | 15,258 | 21 | 50,000 | 0 | 3,959 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 3 | 11.6 | 9.6 | 990,251 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,210 | 277 | 3 | 83,984 | 1 | 41,992 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.1 | 117,209 | 277 | 3 | 83,992 | 1 | 41,996 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 1 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.4 | bash | - |
| 91 | 51 | 47 | 3.5 | zsh | - |
| 15 | 14 | 1 | 29.4 | bumpleak/osh | mut |
| 16 | 13 | 3 | 30.6 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 12 | 7 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 16 | 9 | 25.3 | osh-native | mut+alloc |
| 27 | 20 | 8 | 25.8 | osh-native | mut+alloc+free |
| 31 | 22 | 9 | 18.0 | osh-native | mut+alloc+free+gc |
| 32 | 25 | 7 | 18.3 | osh-native | mut+alloc+free+gc+exit |
| 28 | 18 | 10 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 17 | 13 | 26.2 | osh-nosouffle | mut+alloc+free |
| 37 | 26 | 11 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 34 | 3 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 38 | 23 | 15 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 44 | 32 | 12 | 22.4 | _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.8 | dash | - |
| 42 | 39 | 3 | 3.4 | bash | - |
| 331 | 186 | 169 | 3.7 | zsh | - |
| 48 | 33 | 15 | 85.7 | bumpleak/osh | mut |
| 48 | 40 | 8 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 44 | 14 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 53 | 29 | 73.4 | osh-native | mut+alloc |
| 91 | 54 | 38 | 75.5 | osh-native | mut+alloc+free |
| 140 | 123 | 17 | 51.7 | osh-native | mut+alloc+free+gc |
| 139 | 113 | 24 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 52 | 41 | 74.2 | osh-nosouffle | mut+alloc |
| 100 | 66 | 35 | 76.2 | osh-nosouffle | mut+alloc+free |
| 145 | 118 | 27 | 52.0 | osh-nosouffle | mut+alloc+free+gc |
| 148 | 126 | 22 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 123 | 78 | 45 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 200 | 168 | 31 | 73.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 | 1 | 1 | 1.7 | dash | - |
| 4 | 2 | 2 | 3.3 | bash | - |
| 7 | 3 | 4 | 3.4 | zsh | - |
| 6 | 4 | 2 | 12.6 | bumpleak/osh | mut |
| 6 | 5 | 1 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 7 | 1 | 10.4 | osh-native | mut+alloc |
| 8 | 7 | 1 | 10.7 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 5 | 5 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 2 | 9 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 10 | 2 | 9.5 | _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.6 | dash | - |
| 31 | 31 | 0 | 3.1 | bash | - |
| 21 | 14 | 7 | 3.5 | zsh | - |
| 17 | 11 | 6 | 32.5 | bumpleak/osh | mut |
| 19 | 14 | 4 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 17 | 6 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 23 | 5 | 26.9 | osh-native | mut+alloc |
| 30 | 20 | 10 | 27.1 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 34 | 18 | 15 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 27 | 8 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 27 | 18 | 36.2 | _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 | - |
| 213 | 164 | 49 | 57.3 | bumpleak/osh | mut |
| 221 | 173 | 48 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
| 249 | 179 | 70 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 263 | 180 | 83 | 48.8 | osh-native | mut+alloc |
| 264 | 188 | 76 | 50.7 | osh-native | mut+alloc+free |
| 228 | 179 | 49 | 9.0 | osh-native | mut+alloc+free+gc |
| 223 | 169 | 54 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 268 | 196 | 71 | 49.3 | osh-nosouffle | mut+alloc |
| 270 | 198 | 72 | 51.2 | osh-nosouffle | mut+alloc+free |
| 226 | 178 | 49 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 162 | 64 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 207 | 71 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 253 | 212 | 41 | 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 | 5 | 5 | 3.9 | dash | - |
| 16 | 7 | 10 | 4.8 | bash | - |
| 16 | 8 | 8 | 3.9 | zsh | - |
| 19 | 6 | 14 | 13.0 | bumpleak/osh | mut |
| 18 | 10 | 9 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 8 | 12 | 14.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 8 | 13 | 11.5 | osh-native | mut+alloc |
| 21 | 11 | 10 | 11.7 | osh-native | mut+alloc+free |
| 21 | 12 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 9 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 11 | 9 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 12 | 11 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 14 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 11 | 12 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 12 | 12 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 11 | 13 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |