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 | 33 | 4 | 11 | 12.0 | 18.4 | 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 | 139 | 26 | 66 | 45.9 | 51.7 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 150 | 27 | 66 | 45.9 | 52.2 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.1 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,976 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 4 | 11.6 | 9.2 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.6 | 990,259 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,247 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.0 | 117,246 | 277 | 3 | 83,988 | 1 | 41,994 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.4 | bash | - |
| 91 | 52 | 46 | 3.5 | zsh | - |
| 15 | 12 | 3 | 29.2 | bumpleak/osh | mut |
| 17 | 13 | 4 | 30.4 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 12 | 8 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 16 | 9 | 25.4 | osh-native | mut+alloc |
| 28 | 16 | 12 | 25.8 | osh-native | mut+alloc+free |
| 33 | 27 | 6 | 18.4 | osh-native | mut+alloc+free+gc |
| 32 | 26 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 21 | 7 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 17 | 14 | 26.2 | osh-nosouffle | mut+alloc+free |
| 36 | 26 | 10 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 34 | 3 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 24 | 16 | 33.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 34 | 13 | 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 | 23 | 0 | 1.6 | dash | - |
| 42 | 39 | 3 | 3.4 | bash | - |
| 329 | 169 | 185 | 3.7 | zsh | - |
| 46 | 34 | 11 | 84.6 | bumpleak/osh | mut |
| 50 | 38 | 12 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 47 | 13 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 49 | 35 | 73.5 | osh-native | mut+alloc |
| 92 | 62 | 31 | 75.5 | osh-native | mut+alloc+free |
| 139 | 116 | 23 | 51.7 | osh-native | mut+alloc+free+gc |
| 150 | 121 | 29 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 91 | 59 | 32 | 74.3 | osh-nosouffle | mut+alloc |
| 103 | 67 | 36 | 75.9 | osh-nosouffle | mut+alloc+free |
| 150 | 130 | 20 | 52.2 | osh-nosouffle | mut+alloc+free+gc |
| 157 | 132 | 25 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 127 | 81 | 46 | 98.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 214 | 180 | 34 | 73.7 | _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 | 3 | 1 | 3.1 | bash | - |
| 6 | 5 | 1 | 3.5 | zsh | - |
| 6 | 2 | 4 | 12.6 | bumpleak/osh | mut |
| 7 | 3 | 4 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 6 | 1 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.4 | 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 | 8 | 1 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 5 | 4 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 5 | 6 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 5 | 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 | 10 | 0 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 19 | 2 | 3.4 | zsh | - |
| 18 | 15 | 3 | 33.3 | bumpleak/osh | mut |
| 20 | 13 | 7 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 15 | 7 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 20 | 9 | 27.0 | osh-native | mut+alloc |
| 31 | 18 | 13 | 27.3 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 16 | 4 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 34 | 24 | 9 | 27.5 | osh-nosouffle | mut+alloc |
| 36 | 28 | 8 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 27 | 19 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 4 | 9.9 | _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 | 101 | 3 | 3.4 | bash | - |
| 215 | 158 | 57 | 56.0 | bumpleak/osh | mut |
| 222 | 168 | 54 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 174 | 65 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 258 | 178 | 80 | 48.9 | osh-native | mut+alloc |
| 266 | 189 | 76 | 50.7 | osh-native | mut+alloc+free |
| 222 | 177 | 45 | 9.2 | osh-native | mut+alloc+free+gc |
| 225 | 174 | 51 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 265 | 200 | 65 | 49.4 | osh-nosouffle | mut+alloc |
| 273 | 200 | 73 | 51.2 | osh-nosouffle | mut+alloc+free |
| 226 | 177 | 49 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 181 | 47 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 202 | 77 | 66.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 256 | 200 | 56 | 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 | 7 | 3 | 4.1 | dash | - |
| 16 | 6 | 11 | 4.7 | bash | - |
| 16 | 6 | 10 | 3.9 | zsh | - |
| 18 | 8 | 10 | 14.2 | bumpleak/osh | mut |
| 18 | 10 | 9 | 14.3 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 6 | 13 | 14.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 8 | 13 | 11.5 | osh-native | mut+alloc |
| 21 | 7 | 15 | 11.8 | osh-native | mut+alloc+free |
| 21 | 12 | 9 | 9.6 | osh-native | mut+alloc+free+gc |
| 22 | 10 | 12 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 7 | 15 | 11.9 | osh-nosouffle | mut+alloc |
| 23 | 12 | 12 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 10 | 13 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 10 | 14 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 12 | 12 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 16 | 9 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |