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,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 36 | 4 | 11 | 12.0 | 18.7 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 141 | 25 | 68 | 45.9 | 51.7 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 150 | 27 | 67 | 45.9 | 52.1 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 21 | 0 | 1 | 2.8 | 8.3 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,977 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 3 | 11.6 | 9.0 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 4 | 11.6 | 9.7 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,208 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.0 | 117,207 | 277 | 3 | 83,988 | 1 | 41,994 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 1 | 1.8 | dash | - |
| 13 | 11 | 2 | 3.3 | bash | - |
| 91 | 60 | 38 | 3.5 | zsh | - |
| 16 | 11 | 4 | 30.5 | bumpleak/osh | mut |
| 16 | 13 | 4 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 6 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 13 | 13 | 25.7 | osh-native | mut+alloc |
| 28 | 19 | 9 | 25.7 | osh-native | mut+alloc+free |
| 32 | 28 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
| 33 | 26 | 7 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 21 | 7 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 23 | 8 | 26.2 | osh-nosouffle | mut+alloc+free |
| 36 | 28 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 27 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 28 | 11 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 36 | 11 | 23.0 | _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 | - |
| 42 | 42 | 0 | 3.4 | bash | - |
| 329 | 185 | 166 | 3.7 | zsh | - |
| 46 | 39 | 7 | 85.5 | bumpleak/osh | mut |
| 48 | 38 | 10 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 43 | 16 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 53 | 31 | 73.7 | osh-native | mut+alloc |
| 94 | 61 | 33 | 75.5 | osh-native | mut+alloc+free |
| 141 | 116 | 25 | 51.7 | osh-native | mut+alloc+free+gc |
| 141 | 115 | 26 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 51 | 42 | 74.1 | osh-nosouffle | mut+alloc |
| 101 | 69 | 32 | 76.0 | osh-nosouffle | mut+alloc+free |
| 150 | 122 | 28 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 155 | 135 | 20 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 85 | 43 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 202 | 170 | 32 | 71.3 | _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 | 2 | 1 | 3.3 | bash | - |
| 7 | 3 | 4 | 3.4 | zsh | - |
| 6 | 4 | 2 | 13.1 | bumpleak/osh | mut |
| 7 | 3 | 3 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 6 | 2 | 10.5 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.7 | osh-native | mut+alloc+free |
| 9 | 8 | 1 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 3 | 6 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 5 | 5 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 8 | 3 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 4 | 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 |
| 9 | 9 | 0 | 1.6 | dash | - |
| 31 | 29 | 2 | 3.3 | bash | - |
| 21 | 14 | 7 | 3.4 | zsh | - |
| 17 | 10 | 7 | 32.7 | bumpleak/osh | mut |
| 19 | 14 | 5 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 11 | 10 | 33.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 18 | 11 | 26.7 | osh-native | mut+alloc |
| 31 | 18 | 13 | 27.0 | osh-native | mut+alloc+free |
| 21 | 19 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 33 | 23 | 10 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 27 | 9 | 27.5 | 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 |
| 47 | 28 | 19 | 37.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 25 | 5 | 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 | 97 | 7 | 3.4 | bash | - |
| 216 | 156 | 59 | 57.0 | bumpleak/osh | mut |
| 223 | 182 | 41 | 57.8 | _bin/cxx-opt+bumproot/osh | mut |
| 237 | 180 | 57 | 58.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 262 | 184 | 78 | 48.8 | osh-native | mut+alloc |
| 277 | 202 | 75 | 50.6 | osh-native | mut+alloc+free |
| 221 | 180 | 41 | 9.0 | osh-native | mut+alloc+free+gc |
| 223 | 180 | 43 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 265 | 201 | 64 | 49.3 | osh-nosouffle | mut+alloc |
| 273 | 195 | 78 | 51.3 | osh-nosouffle | mut+alloc+free |
| 227 | 183 | 44 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 232 | 204 | 28 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 198 | 81 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 251 | 205 | 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 | 3 | 6 | 3.8 | dash | - |
| 16 | 10 | 6 | 4.8 | bash | - |
| 16 | 8 | 8 | 3.9 | zsh | - |
| 19 | 13 | 7 | 13.0 | bumpleak/osh | mut |
| 18 | 9 | 10 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 11 | 9 | 14.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 13 | 7 | 11.5 | osh-native | mut+alloc |
| 21 | 9 | 13 | 11.8 | osh-native | mut+alloc+free |
| 21 | 10 | 11 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 11 | 11 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 21 | 9 | 12 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 12 | 11 | 12.2 | osh-nosouffle | mut+alloc+free |
| 22 | 14 | 9 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 12 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 13 | 11 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 9 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |