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.1 | 471,269 | 1,282 | 6 | 413,154 | 5 | 206,577 | osh-native |
| parse.configure-cpython | 34 | 3 | 10 | 12.0 | 18.7 | 471,269 | 1,282 | 6 | 413,162 | 5 | 206,581 | osh-nosouffle |
| parse.configure-coreutils | 138 | 24 | 63 | 45.9 | 51.9 | 1,638,008 | 4,764 | 12 | 1,056,652 | 6 | 787,847 | osh-native |
| parse.configure-coreutils | 143 | 23 | 59 | 45.9 | 52.3 | 1,638,007 | 4,764 | 12 | 1,056,660 | 6 | 787,851 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,797 | 180 | 3 | 86,640 | 1 | 43,320 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.6 | 9.0 | 102,797 | 180 | 3 | 86,648 | 1 | 43,324 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,987 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 2.8 | 8.8 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,992 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 4 | 11.6 | 9.2 | 990,267 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.7 | 990,266 | 15,258 | 21 | 50,000 | 0 | 3,971 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,228 | 277 | 3 | 84,002 | 1 | 42,001 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,227 | 277 | 3 | 84,010 | 1 | 42,005 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 5 | 1 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 89 | 56 | 40 | 3.5 | zsh | - |
| 16 | 11 | 5 | 29.3 | bumpleak/osh | mut |
| 16 | 13 | 3 | 30.7 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 5 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 19 | 6 | 25.4 | osh-native | mut+alloc |
| 27 | 18 | 10 | 26.0 | osh-native | mut+alloc+free |
| 32 | 23 | 9 | 18.1 | osh-native | mut+alloc+free+gc |
| 33 | 27 | 6 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 28 | 21 | 7 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 23 | 7 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 29 | 5 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 30 | 5 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 38 | 24 | 15 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 34 | 11 | 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 | 20 | 3 | 1.7 | dash | - |
| 42 | 40 | 2 | 3.5 | bash | - |
| 324 | 177 | 168 | 3.7 | zsh | - |
| 46 | 37 | 9 | 85.7 | bumpleak/osh | mut |
| 48 | 39 | 9 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 43 | 16 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 85 | 49 | 36 | 73.5 | osh-native | mut+alloc |
| 92 | 64 | 28 | 75.6 | osh-native | mut+alloc+free |
| 138 | 109 | 29 | 51.9 | osh-native | mut+alloc+free+gc |
| 143 | 115 | 28 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 91 | 54 | 37 | 74.1 | osh-nosouffle | mut+alloc |
| 100 | 76 | 24 | 75.9 | osh-nosouffle | mut+alloc+free |
| 143 | 116 | 27 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 145 | 127 | 18 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 130 | 84 | 46 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 196 | 159 | 37 | 74.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.6 | dash | - |
| 4 | 3 | 1 | 3.1 | bash | - |
| 6 | 3 | 3 | 3.4 | zsh | - |
| 6 | 5 | 1 | 12.2 | bumpleak/osh | mut |
| 6 | 4 | 2 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 5 | 2 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 3 | 10.6 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.5 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 8 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.0 | osh-nosouffle | mut+alloc+free |
| 9 | 8 | 2 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 3 | 9.8 | _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 | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 15 | 6 | 3.4 | zsh | - |
| 17 | 12 | 5 | 33.1 | bumpleak/osh | mut |
| 19 | 16 | 3 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 6 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 20 | 8 | 26.9 | osh-native | mut+alloc |
| 30 | 21 | 9 | 27.0 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 34 | 22 | 12 | 27.4 | osh-nosouffle | mut+alloc |
| 35 | 27 | 8 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 34 | 13 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 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 |
| 103 | 96 | 7 | 3.4 | bash | - |
| 211 | 153 | 58 | 57.4 | bumpleak/osh | mut |
| 222 | 176 | 45 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 177 | 63 | 58.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 199 | 56 | 48.8 | osh-native | mut+alloc |
| 262 | 190 | 72 | 50.7 | osh-native | mut+alloc+free |
| 222 | 167 | 55 | 9.2 | osh-native | mut+alloc+free+gc |
| 222 | 170 | 52 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 262 | 184 | 77 | 49.3 | osh-nosouffle | mut+alloc |
| 270 | 203 | 67 | 51.3 | osh-nosouffle | mut+alloc+free |
| 226 | 177 | 49 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 176 | 52 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 277 | 220 | 57 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 195 | 54 | 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 | 5 | 4 | 3.9 | dash | - |
| 16 | 9 | 7 | 4.8 | bash | - |
| 16 | 7 | 10 | 3.8 | zsh | - |
| 18 | 7 | 12 | 13.0 | bumpleak/osh | mut |
| 19 | 9 | 10 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 9 | 10 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 6 | 14 | 11.5 | osh-native | mut+alloc |
| 20 | 10 | 11 | 11.8 | osh-native | mut+alloc+free |
| 21 | 11 | 10 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 10 | 11 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 7 | 13 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 11 | 11 | 12.1 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 10 | 13 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 10 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 17 | 7 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |