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 | 35 | 5 | 12 | 12.0 | 18.4 | 471,271 | 1,282 | 6 | 413,158 | 5 | 206,579 | osh-native |
| parse.configure-cpython | 39 | 5 | 13 | 12.0 | 18.9 | 471,271 | 1,282 | 6 | 413,166 | 5 | 206,583 | osh-nosouffle |
| parse.configure-coreutils | 143 | 26 | 68 | 45.9 | 51.7 | 1,638,010 | 4,764 | 12 | 1,056,656 | 6 | 787,849 | osh-native |
| parse.configure-coreutils | 150 | 26 | 67 | 45.9 | 52.4 | 1,638,009 | 4,764 | 12 | 1,056,664 | 6 | 787,853 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,799 | 180 | 3 | 86,644 | 1 | 43,322 | osh-native |
| parse.abuild | 10 | 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.3 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,990 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,994 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 4 | 11.6 | 9.2 | 990,269 | 15,258 | 21 | 50,000 | 0 | 3,967 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.8 | 990,268 | 15,258 | 21 | 50,000 | 0 | 3,973 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,230 | 277 | 3 | 84,006 | 1 | 42,003 | osh-native |
| ex.abuild-print-help | 24 | 1 | 2 | 3.0 | 10.0 | 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.3 | bash | - |
| 92 | 47 | 51 | 3.4 | zsh | - |
| 16 | 11 | 5 | 30.1 | bumpleak/osh | mut |
| 16 | 12 | 4 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 15 | 4 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 27 | 14 | 12 | 25.4 | osh-native | mut+alloc |
| 29 | 19 | 10 | 25.8 | osh-native | mut+alloc+free |
| 35 | 28 | 7 | 18.4 | osh-native | mut+alloc+free+gc |
| 35 | 32 | 3 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 18 | 11 | 26.0 | osh-nosouffle | mut+alloc |
| 32 | 20 | 11 | 26.2 | osh-nosouffle | mut+alloc+free |
| 39 | 31 | 8 | 18.9 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 28 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 41 | 29 | 12 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 53 | 41 | 12 | 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.7 | dash | - |
| 42 | 40 | 2 | 3.4 | bash | - |
| 332 | 197 | 158 | 3.7 | zsh | - |
| 46 | 36 | 10 | 85.4 | bumpleak/osh | mut |
| 49 | 40 | 9 | 86.6 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 47 | 13 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 51 | 33 | 73.9 | osh-native | mut+alloc |
| 93 | 64 | 29 | 75.6 | osh-native | mut+alloc+free |
| 143 | 118 | 25 | 51.7 | osh-native | mut+alloc+free+gc |
| 144 | 117 | 27 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 59 | 35 | 74.2 | osh-nosouffle | mut+alloc |
| 101 | 60 | 41 | 76.0 | osh-nosouffle | mut+alloc+free |
| 150 | 125 | 26 | 52.4 | osh-nosouffle | mut+alloc+free+gc |
| 156 | 142 | 14 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 81 | 47 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 217 | 185 | 32 | 73.8 | _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.6 | dash | - |
| 4 | 3 | 1 | 3.1 | bash | - |
| 7 | 5 | 1 | 3.3 | zsh | - |
| 6 | 4 | 3 | 12.1 | bumpleak/osh | mut |
| 7 | 4 | 3 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 3 | 4 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 10.6 | osh-native | mut+alloc |
| 8 | 7 | 2 | 10.7 | osh-native | mut+alloc+free |
| 9 | 8 | 1 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 4 | 5 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 4 | 7 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 5 | 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 | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 17 | 4 | 3.3 | zsh | - |
| 18 | 11 | 7 | 33.0 | bumpleak/osh | mut |
| 19 | 17 | 2 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 17 | 4 | 33.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 11 | 17 | 26.9 | osh-native | mut+alloc |
| 31 | 22 | 9 | 27.1 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 23 | 11 | 27.4 | osh-nosouffle | mut+alloc |
| 37 | 28 | 9 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 24 | 1 | 8.5 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 30 | 17 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 28 | 2 | 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 |
| 105 | 101 | 4 | 3.4 | bash | - |
| 211 | 154 | 57 | 57.2 | bumpleak/osh | mut |
| 222 | 159 | 63 | 56.5 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 192 | 48 | 58.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 256 | 189 | 67 | 48.9 | osh-native | mut+alloc |
| 269 | 207 | 62 | 50.7 | osh-native | mut+alloc+free |
| 221 | 169 | 52 | 9.2 | osh-native | mut+alloc+free+gc |
| 222 | 163 | 60 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 195 | 68 | 49.1 | osh-nosouffle | mut+alloc |
| 271 | 218 | 53 | 51.1 | osh-nosouffle | mut+alloc+free |
| 226 | 180 | 46 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 229 | 175 | 54 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 290 | 211 | 78 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 253 | 204 | 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 | 4 | 5 | 3.9 | dash | - |
| 16 | 7 | 9 | 4.7 | bash | - |
| 16 | 6 | 10 | 3.9 | zsh | - |
| 19 | 7 | 13 | 13.4 | bumpleak/osh | mut |
| 18 | 6 | 13 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 8 | 12 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 9 | 11 | 11.4 | osh-native | mut+alloc |
| 21 | 13 | 9 | 11.7 | osh-native | mut+alloc+free |
| 21 | 12 | 10 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 9 | 13 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 8 | 14 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 8 | 15 | 12.3 | osh-nosouffle | mut+alloc+free |
| 24 | 9 | 14 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 12 | 12 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 7 | 16 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 9 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |