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.0 | 471,275 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 35 | 3 | 10 | 12.0 | 18.7 | 471,275 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 144 | 26 | 69 | 45.9 | 51.7 | 1,638,014 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 146 | 24 | 63 | 45.9 | 52.1 | 1,638,013 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,803 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,803 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.1 | 572,127 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 572,127 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.2 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 228 | 0 | 4 | 11.6 | 9.6 | 990,272 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.4 | 117,234 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.1 | 117,233 | 277 | 3 | 84,016 | 1 | 42,008 | 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.3 | bash | - |
| 91 | 45 | 54 | 3.5 | zsh | - |
| 15 | 11 | 5 | 30.1 | bumpleak/osh | mut |
| 16 | 13 | 3 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 11 | 9 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 20 | 5 | 25.6 | osh-native | mut+alloc |
| 28 | 18 | 10 | 25.8 | osh-native | mut+alloc+free |
| 32 | 25 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 33 | 25 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 22 | 6 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 22 | 8 | 26.2 | osh-nosouffle | mut+alloc+free |
| 35 | 29 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 29 | 6 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 23 | 16 | 33.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 32 | 14 | 22.5 | _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 | - |
| 43 | 42 | 1 | 3.5 | bash | - |
| 326 | 195 | 153 | 3.7 | zsh | - |
| 45 | 39 | 6 | 85.6 | bumpleak/osh | mut |
| 48 | 40 | 8 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 45 | 13 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 48 | 36 | 73.8 | osh-native | mut+alloc |
| 92 | 58 | 34 | 75.4 | osh-native | mut+alloc+free |
| 144 | 120 | 24 | 51.7 | osh-native | mut+alloc+free+gc |
| 143 | 110 | 33 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 92 | 70 | 22 | 74.2 | osh-nosouffle | mut+alloc |
| 100 | 69 | 30 | 76.0 | osh-nosouffle | mut+alloc+free |
| 146 | 122 | 24 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 153 | 129 | 25 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 123 | 79 | 44 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 176 | 33 | 73.2 | _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 | 2 | 5 | 3.4 | zsh | - |
| 6 | 3 | 4 | 12.0 | bumpleak/osh | mut |
| 7 | 4 | 3 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 4 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 3 | 10.4 | osh-native | mut+alloc |
| 8 | 3 | 5 | 10.6 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 4 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 8 | 2 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 9 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 4 | 7 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 10 | 2 | 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 |
| 10 | 9 | 1 | 1.7 | dash | - |
| 31 | 31 | 0 | 3.1 | bash | - |
| 21 | 15 | 6 | 3.4 | zsh | - |
| 16 | 11 | 5 | 33.5 | bumpleak/osh | mut |
| 19 | 17 | 2 | 33.5 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 6 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 20 | 9 | 26.9 | osh-native | mut+alloc |
| 30 | 19 | 11 | 27.1 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 22 | 12 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 25 | 11 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 22 | 24 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 24 | 6 | 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 |
| 103 | 98 | 5 | 3.4 | bash | - |
| 214 | 150 | 64 | 56.4 | bumpleak/osh | mut |
| 220 | 174 | 46 | 56.5 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 178 | 62 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 256 | 174 | 82 | 48.6 | osh-native | mut+alloc |
| 265 | 179 | 86 | 50.6 | osh-native | mut+alloc+free |
| 226 | 180 | 46 | 9.2 | osh-native | mut+alloc+free+gc |
| 225 | 168 | 57 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 262 | 189 | 73 | 49.4 | osh-nosouffle | mut+alloc |
| 269 | 203 | 65 | 51.3 | osh-nosouffle | mut+alloc+free |
| 228 | 177 | 51 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 176 | 52 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 202 | 76 | 65.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 251 | 203 | 48 | 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.9 | dash | - |
| 16 | 6 | 10 | 4.7 | bash | - |
| 16 | 8 | 8 | 4.1 | zsh | - |
| 18 | 11 | 7 | 12.6 | bumpleak/osh | mut |
| 18 | 8 | 10 | 14.5 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 9 | 10 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 8 | 12 | 11.5 | osh-native | mut+alloc |
| 21 | 9 | 13 | 11.8 | osh-native | mut+alloc+free |
| 20 | 11 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 10 | 12 | 9.3 | osh-native | mut+alloc+free+gc+exit |
| 21 | 11 | 10 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 10 | 13 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 13 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 14 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 15 | 8 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 10 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |