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,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 18.6 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 137 | 26 | 64 | 45.9 | 51.8 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 138 | 23 | 57 | 45.9 | 52.3 | 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 | 9 | 1 | 2 | 2.6 | 9.0 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,977 | osh-native |
| ex.compute-fib | 24 | 0 | 1 | 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.2 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 3 | 11.6 | 9.4 | 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 | 21 | 1 | 2 | 3.0 | 10.1 | 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 |
| 7 | 6 | 1 | 1.8 | dash | - |
| 13 | 12 | 1 | 3.4 | bash | - |
| 88 | 54 | 41 | 3.5 | zsh | - |
| 15 | 14 | 1 | 28.8 | bumpleak/osh | mut |
| 16 | 11 | 5 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 5 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 14 | 12 | 25.6 | osh-native | mut+alloc |
| 27 | 13 | 14 | 26.0 | osh-native | mut+alloc+free |
| 31 | 18 | 13 | 18.0 | osh-native | mut+alloc+free+gc |
| 32 | 28 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 16 | 12 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 17 | 13 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 31 | 3 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 27 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 28 | 11 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 44 | 34 | 10 | 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 | 23 | 0 | 1.6 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 321 | 175 | 167 | 3.7 | zsh | - |
| 45 | 31 | 14 | 85.0 | bumpleak/osh | mut |
| 47 | 38 | 9 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 47 | 12 | 86.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 51 | 31 | 73.5 | osh-native | mut+alloc |
| 89 | 55 | 34 | 75.5 | osh-native | mut+alloc+free |
| 137 | 113 | 24 | 51.8 | osh-native | mut+alloc+free+gc |
| 137 | 117 | 20 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 91 | 60 | 31 | 74.1 | osh-nosouffle | mut+alloc |
| 99 | 64 | 36 | 76.0 | osh-nosouffle | mut+alloc+free |
| 138 | 112 | 26 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 149 | 132 | 17 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 89 | 36 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 192 | 155 | 37 | 72.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 | 1 | 1 | 1.6 | dash | - |
| 4 | 3 | 1 | 3.3 | bash | - |
| 6 | 4 | 3 | 3.3 | zsh | - |
| 6 | 4 | 2 | 12.2 | bumpleak/osh | mut |
| 7 | 3 | 3 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 3 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 3 | 10.4 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.7 | osh-native | mut+alloc+free |
| 9 | 8 | 1 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 8 | 1 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 8 | 6 | 3 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 5 | 4 | 11.3 | osh-nosouffle | mut+alloc+free |
| 9 | 5 | 4 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 5 | 6 | 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.4 | dash | - |
| 31 | 30 | 1 | 3.1 | bash | - |
| 21 | 14 | 7 | 3.4 | zsh | - |
| 17 | 13 | 4 | 32.0 | bumpleak/osh | mut |
| 18 | 13 | 5 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 10 | 11 | 34.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 20 | 8 | 26.7 | osh-native | mut+alloc |
| 31 | 19 | 12 | 27.0 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 21 | 11 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 21 | 13 | 27.7 | osh-nosouffle | mut+alloc+free |
| 24 | 21 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 23 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 24 | 21 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 28 | 2 | 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 | 101 | 3 | 3.5 | bash | - |
| 215 | 170 | 45 | 57.0 | bumpleak/osh | mut |
| 222 | 170 | 51 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 193 | 47 | 58.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 193 | 62 | 48.9 | osh-native | mut+alloc |
| 263 | 186 | 77 | 50.9 | osh-native | mut+alloc+free |
| 221 | 179 | 42 | 9.2 | osh-native | mut+alloc+free+gc |
| 223 | 175 | 48 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 260 | 188 | 72 | 49.4 | osh-nosouffle | mut+alloc |
| 267 | 194 | 73 | 51.3 | osh-nosouffle | mut+alloc+free |
| 226 | 179 | 47 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 172 | 54 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 206 | 71 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 210 | 39 | 10.8 | _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 | 4 | 3.9 | dash | - |
| 16 | 6 | 10 | 4.8 | bash | - |
| 15 | 6 | 10 | 3.9 | zsh | - |
| 18 | 6 | 12 | 12.3 | bumpleak/osh | mut |
| 18 | 7 | 11 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 10 | 11 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 10 | 10 | 11.4 | osh-native | mut+alloc |
| 21 | 7 | 15 | 11.7 | osh-native | mut+alloc+free |
| 21 | 11 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 10 | 11 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 8 | 13 | 12.2 | osh-nosouffle | mut+alloc |
| 21 | 11 | 10 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 14 | 8 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 21 | 16 | 6 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 12 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 16 | 9 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |