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.2 | 471,276 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 34 | 4 | 12 | 12.0 | 18.7 | 471,276 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 135 | 22 | 68 | 45.9 | 51.7 | 1,638,015 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 139 | 21 | 64 | 45.9 | 52.3 | 1,638,014 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,804 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.6 | 9.3 | 102,804 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.9 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 173 | 0 | 6 | 11.6 | 9.3 | 990,274 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 176 | 0 | 5 | 11.6 | 9.7 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 18 | 1 | 2 | 3.0 | 9.4 | 117,235 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 18 | 1 | 2 | 3.0 | 10.1 | 117,234 | 277 | 3 | 84,016 | 1 | 42,008 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 5 | 5 | 0 | 1.7 | dash | - |
| 11 | 10 | 1 | 3.4 | bash | - |
| 66 | 45 | 26 | 3.5 | zsh | - |
| 16 | 8 | 7 | 30.0 | bumpleak/osh | mut |
| 17 | 11 | 5 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 16 | 4 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 16 | 6 | 25.7 | osh-native | mut+alloc |
| 25 | 14 | 11 | 25.7 | osh-native | mut+alloc+free |
| 31 | 26 | 5 | 18.2 | osh-native | mut+alloc+free+gc |
| 35 | 25 | 10 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 25 | 18 | 7 | 26.1 | osh-nosouffle | mut+alloc |
| 27 | 19 | 8 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 30 | 4 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 29 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 23 | 11 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 41 | 7 | 23.1 | _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 | 37 | 1 | 3.5 | bash | - |
| 232 | 134 | 113 | 3.5 | zsh | - |
| 49 | 33 | 16 | 86.5 | bumpleak/osh | mut |
| 53 | 35 | 18 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
| 61 | 46 | 15 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 71 | 34 | 37 | 73.8 | osh-native | mut+alloc |
| 83 | 63 | 19 | 75.6 | osh-native | mut+alloc+free |
| 135 | 114 | 21 | 51.7 | osh-native | mut+alloc+free+gc |
| 141 | 123 | 18 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 80 | 53 | 27 | 74.2 | osh-nosouffle | mut+alloc |
| 90 | 64 | 26 | 75.9 | osh-nosouffle | mut+alloc+free |
| 139 | 128 | 11 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 151 | 132 | 18 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 108 | 71 | 37 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 189 | 166 | 23 | 73.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 | 3 | 0 | 3.1 | bash | - |
| 5 | 4 | 1 | 3.4 | zsh | - |
| 6 | 4 | 2 | 13.2 | bumpleak/osh | mut |
| 6 | 3 | 3 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 2 | 5 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 7 | 7 | 0 | 10.5 | osh-native | mut+alloc |
| 7 | 4 | 4 | 10.7 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 7 | 5 | 2 | 11.0 | osh-nosouffle | mut+alloc |
| 8 | 5 | 3 | 11.1 | osh-nosouffle | mut+alloc+free |
| 9 | 7 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 5 | 5 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 3 | 6 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 7 | 4 | 9.6 | _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.7 | dash | - |
| 29 | 29 | 0 | 3.3 | bash | - |
| 17 | 14 | 3 | 3.5 | zsh | - |
| 18 | 12 | 6 | 33.8 | bumpleak/osh | mut |
| 20 | 12 | 8 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 16 | 7 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 17 | 9 | 26.7 | osh-native | mut+alloc |
| 28 | 16 | 12 | 27.3 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 16 | 4 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 30 | 18 | 12 | 27.4 | osh-nosouffle | mut+alloc |
| 33 | 28 | 5 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 2 | 8.9 | 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 |
| 28 | 24 | 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 |
| 96 | 96 | 0 | 3.4 | bash | - |
| 170 | 142 | 28 | 56.1 | bumpleak/osh | mut |
| 178 | 143 | 35 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
| 188 | 157 | 31 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 193 | 149 | 44 | 48.9 | osh-native | mut+alloc |
| 201 | 160 | 41 | 50.9 | osh-native | mut+alloc+free |
| 173 | 156 | 17 | 9.3 | osh-native | mut+alloc+free+gc |
| 172 | 147 | 25 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 198 | 154 | 44 | 49.3 | osh-nosouffle | mut+alloc |
| 218 | 188 | 30 | 51.5 | osh-nosouffle | mut+alloc+free |
| 176 | 156 | 20 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 177 | 158 | 19 | 9.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 222 | 184 | 38 | 66.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 202 | 180 | 21 | 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 |
| 7 | 4 | 2 | 3.8 | dash | - |
| 13 | 10 | 3 | 4.8 | bash | - |
| 11 | 7 | 5 | 4.1 | zsh | - |
| 16 | 3 | 13 | 13.1 | bumpleak/osh | mut |
| 16 | 8 | 9 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
| 16 | 9 | 7 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 16 | 10 | 6 | 11.7 | osh-native | mut+alloc |
| 17 | 10 | 7 | 11.8 | osh-native | mut+alloc+free |
| 18 | 13 | 5 | 9.4 | osh-native | mut+alloc+free+gc |
| 18 | 12 | 6 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 17 | 11 | 6 | 12.2 | osh-nosouffle | mut+alloc |
| 18 | 9 | 10 | 12.2 | osh-nosouffle | mut+alloc+free |
| 18 | 13 | 6 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 19 | 12 | 8 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 19 | 11 | 8 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 20 | 13 | 7 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |