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.2 | 471,271 | 1,282 | 6 | 413,158 | 5 | 206,579 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.7 | 471,271 | 1,282 | 6 | 413,166 | 5 | 206,583 | osh-nosouffle |
| parse.configure-coreutils | 142 | 27 | 68 | 45.9 | 51.9 | 1,638,010 | 4,764 | 12 | 1,056,656 | 6 | 787,849 | osh-native |
| parse.configure-coreutils | 155 | 28 | 72 | 45.9 | 52.1 | 1,638,009 | 4,764 | 12 | 1,056,664 | 6 | 787,853 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,799 | 180 | 3 | 86,644 | 1 | 43,322 | osh-native |
| parse.abuild | 11 | 1 | 2 | 2.6 | 9.0 | 102,799 | 180 | 3 | 86,652 | 1 | 43,326 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.1 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,990 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,994 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 3 | 11.6 | 9.0 | 990,269 | 15,258 | 21 | 50,000 | 0 | 3,967 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 4 | 11.6 | 9.6 | 990,268 | 15,258 | 21 | 50,000 | 0 | 3,973 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,230 | 277 | 3 | 84,006 | 1 | 42,003 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.1 | 117,229 | 277 | 3 | 84,014 | 1 | 42,007 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 7 | 0 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.1 | bash | - |
| 92 | 53 | 45 | 3.5 | zsh | - |
| 16 | 14 | 2 | 29.1 | bumpleak/osh | mut |
| 17 | 13 | 3 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 5 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 16 | 10 | 25.4 | osh-native | mut+alloc |
| 28 | 18 | 10 | 25.7 | osh-native | mut+alloc+free |
| 32 | 22 | 10 | 18.2 | osh-native | mut+alloc+free+gc |
| 32 | 24 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 28 | 18 | 10 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 18 | 12 | 26.2 | osh-nosouffle | mut+alloc+free |
| 35 | 33 | 2 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 26 | 10 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 38 | 24 | 14 | 33.1 | _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 | 23 | 0 | 1.6 | dash | - |
| 42 | 40 | 2 | 3.5 | bash | - |
| 332 | 184 | 171 | 3.8 | zsh | - |
| 46 | 38 | 8 | 85.1 | bumpleak/osh | mut |
| 48 | 40 | 8 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 46 | 14 | 87.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 54 | 30 | 73.7 | osh-native | mut+alloc |
| 93 | 61 | 32 | 75.3 | osh-native | mut+alloc+free |
| 142 | 116 | 26 | 51.9 | osh-native | mut+alloc+free+gc |
| 146 | 115 | 31 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 92 | 61 | 31 | 74.1 | osh-nosouffle | mut+alloc |
| 104 | 65 | 39 | 75.9 | osh-nosouffle | mut+alloc+free |
| 155 | 133 | 22 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 159 | 136 | 23 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 71 | 57 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 204 | 177 | 27 | 72.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 | 2 | 0 | 1.7 | dash | - |
| 4 | 2 | 1 | 3.3 | bash | - |
| 6 | 1 | 5 | 3.4 | zsh | - |
| 7 | 4 | 3 | 12.3 | bumpleak/osh | mut |
| 6 | 2 | 4 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.5 | osh-native | mut+alloc |
| 8 | 4 | 5 | 10.7 | osh-native | mut+alloc+free |
| 9 | 7 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 3 | 6 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 11 | 7 | 4 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 9 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 9 | 3 | 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 | - |
| 30 | 30 | 0 | 3.1 | bash | - |
| 21 | 15 | 6 | 3.4 | zsh | - |
| 17 | 15 | 2 | 31.6 | bumpleak/osh | mut |
| 18 | 14 | 4 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 18 | 3 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 15 | 14 | 26.9 | osh-native | mut+alloc |
| 31 | 20 | 11 | 27.2 | osh-native | mut+alloc+free |
| 20 | 17 | 4 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 15 | 5 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 25 | 9 | 27.1 | osh-nosouffle | mut+alloc |
| 36 | 19 | 16 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 27 | 19 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 25 | 5 | 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 | 101 | 2 | 3.4 | bash | - |
| 212 | 158 | 54 | 57.2 | bumpleak/osh | mut |
| 222 | 175 | 47 | 57.6 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 171 | 69 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 257 | 200 | 57 | 48.8 | osh-native | mut+alloc |
| 266 | 188 | 77 | 50.7 | osh-native | mut+alloc+free |
| 222 | 172 | 50 | 9.0 | osh-native | mut+alloc+free+gc |
| 223 | 178 | 45 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 270 | 193 | 73 | 49.3 | osh-nosouffle | mut+alloc |
| 273 | 198 | 75 | 51.3 | osh-nosouffle | mut+alloc+free |
| 227 | 187 | 40 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 229 | 182 | 47 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 280 | 214 | 66 | 65.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 253 | 192 | 61 | 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 | 4 | 6 | 4.1 | dash | - |
| 16 | 10 | 6 | 4.8 | bash | - |
| 16 | 6 | 10 | 3.9 | zsh | - |
| 19 | 7 | 12 | 13.5 | bumpleak/osh | mut |
| 17 | 9 | 9 | 14.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 9 | 12 | 14.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 10 | 11 | 11.7 | osh-native | mut+alloc |
| 21 | 13 | 8 | 11.7 | osh-native | mut+alloc+free |
| 21 | 10 | 11 | 9.4 | osh-native | mut+alloc+free+gc |
| 22 | 14 | 8 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 9 | 13 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 11 | 12 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 10 | 13 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 13 | 11 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 12 | 12 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 12 | 12 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |