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 | 4 | 11 | 12.0 | 18.4 | 471,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 34 | 4 | 11 | 12.0 | 18.6 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 128 | 21 | 61 | 45.9 | 51.7 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 136 | 21 | 62 | 45.9 | 52.4 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 8 | 1 | 2 | 2.6 | 8.8 | 102,791 | 180 | 3 | 86,628 | 1 | 43,314 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.6 | 9.2 | 102,791 | 180 | 3 | 86,636 | 1 | 43,318 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.5 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 172 | 0 | 5 | 11.6 | 9.0 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 179 | 0 | 6 | 11.6 | 9.8 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 18 | 1 | 2 | 3.0 | 9.6 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 19 | 1 | 2 | 3.0 | 10.1 | 117,218 | 277 | 3 | 83,998 | 1 | 41,999 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 5 | 5 | 0 | 1.8 | dash | - |
| 11 | 10 | 1 | 3.4 | bash | - |
| 67 | 35 | 37 | 3.5 | zsh | - |
| 16 | 10 | 6 | 29.7 | bumpleak/osh | mut |
| 17 | 10 | 8 | 30.7 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 6 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 13 | 9 | 25.4 | osh-native | mut+alloc |
| 25 | 18 | 6 | 26.0 | osh-native | mut+alloc+free |
| 31 | 24 | 7 | 18.4 | osh-native | mut+alloc+free+gc |
| 32 | 26 | 6 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 25 | 16 | 8 | 26.1 | osh-nosouffle | mut+alloc |
| 27 | 21 | 6 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 27 | 6 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 33 | 2 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 20 | 13 | 33.6 | _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 |
| 18 | 17 | 1 | 1.7 | dash | - |
| 38 | 36 | 2 | 3.5 | bash | - |
| 234 | 158 | 90 | 3.5 | zsh | - |
| 50 | 35 | 15 | 85.6 | bumpleak/osh | mut |
| 54 | 40 | 14 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
| 62 | 43 | 19 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 71 | 43 | 28 | 73.8 | osh-native | mut+alloc |
| 81 | 55 | 26 | 75.8 | osh-native | mut+alloc+free |
| 128 | 108 | 19 | 51.7 | osh-native | mut+alloc+free+gc |
| 134 | 111 | 22 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 80 | 54 | 26 | 74.2 | osh-nosouffle | mut+alloc |
| 91 | 71 | 20 | 76.0 | osh-nosouffle | mut+alloc+free |
| 136 | 115 | 21 | 52.4 | osh-nosouffle | mut+alloc+free+gc |
| 142 | 125 | 17 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 108 | 80 | 28 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 184 | 159 | 25 | 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 |
| 1 | 1 | 1 | 1.7 | dash | - |
| 3 | 2 | 1 | 3.3 | bash | - |
| 5 | 5 | 0 | 3.4 | zsh | - |
| 6 | 3 | 3 | 12.9 | bumpleak/osh | mut |
| 6 | 2 | 4 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 7 | 5 | 2 | 10.6 | osh-native | mut+alloc |
| 7 | 3 | 4 | 10.9 | osh-native | mut+alloc+free |
| 8 | 4 | 5 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 3 | 4 | 11.0 | osh-nosouffle | mut+alloc |
| 8 | 4 | 5 | 11.3 | osh-nosouffle | mut+alloc+free |
| 9 | 9 | 0 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 7 | 2 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 9 | 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 |
| 9 | 9 | 0 | 1.6 | dash | - |
| 29 | 27 | 2 | 3.4 | bash | - |
| 16 | 13 | 3 | 3.5 | zsh | - |
| 19 | 13 | 6 | 33.0 | bumpleak/osh | mut |
| 20 | 15 | 5 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 17 | 6 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 16 | 10 | 26.9 | osh-native | mut+alloc |
| 28 | 22 | 6 | 27.1 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.5 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 31 | 25 | 5 | 27.4 | osh-nosouffle | mut+alloc |
| 34 | 22 | 11 | 27.8 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 27 | 13 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 24 | 4 | 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 |
| 96 | 93 | 3 | 3.4 | bash | - |
| 172 | 144 | 28 | 56.4 | bumpleak/osh | mut |
| 182 | 153 | 29 | 57.3 | _bin/cxx-opt+bumproot/osh | mut |
| 188 | 160 | 28 | 58.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 194 | 155 | 39 | 49.1 | osh-native | mut+alloc |
| 205 | 169 | 36 | 50.9 | osh-native | mut+alloc+free |
| 172 | 156 | 16 | 9.0 | osh-native | mut+alloc+free+gc |
| 173 | 163 | 10 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 204 | 161 | 43 | 49.4 | osh-nosouffle | mut+alloc |
| 211 | 172 | 39 | 51.2 | osh-nosouffle | mut+alloc+free |
| 179 | 155 | 24 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 177 | 156 | 21 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 219 | 171 | 48 | 65.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 186 | 20 | 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 |
| 7 | 5 | 2 | 3.9 | dash | - |
| 13 | 6 | 7 | 4.7 | bash | - |
| 12 | 7 | 5 | 3.9 | zsh | - |
| 15 | 10 | 6 | 14.2 | bumpleak/osh | mut |
| 16 | 8 | 8 | 14.1 | _bin/cxx-opt+bumproot/osh | mut |
| 16 | 9 | 8 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 16 | 8 | 8 | 11.7 | osh-native | mut+alloc |
| 18 | 10 | 8 | 11.7 | osh-native | mut+alloc+free |
| 18 | 11 | 7 | 9.6 | osh-native | mut+alloc+free+gc |
| 19 | 9 | 10 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 17 | 9 | 9 | 12.2 | osh-nosouffle | mut+alloc |
| 19 | 10 | 9 | 12.3 | osh-nosouffle | mut+alloc+free |
| 19 | 11 | 8 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 19 | 12 | 8 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 19 | 13 | 7 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 20 | 11 | 10 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |