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,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 33 | 3 | 9 | 12.0 | 18.7 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 136 | 24 | 63 | 45.9 | 51.6 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 138 | 23 | 57 | 45.9 | 52.1 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.8 | 102,791 | 180 | 3 | 86,628 | 1 | 43,314 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,791 | 180 | 3 | 86,636 | 1 | 43,318 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.1 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 24 | 0 | 2 | 2.8 | 8.7 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 4 | 11.6 | 9.2 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 3 | 11.6 | 9.7 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,218 | 277 | 3 | 83,998 | 1 | 41,999 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 5 | 2 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 89 | 45 | 50 | 3.5 | zsh | - |
| 16 | 11 | 5 | 28.9 | bumpleak/osh | mut |
| 17 | 12 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 11 | 7 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 16 | 9 | 25.4 | osh-native | mut+alloc |
| 27 | 20 | 8 | 25.8 | osh-native | mut+alloc+free |
| 32 | 28 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
| 33 | 26 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 11 | 17 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 21 | 8 | 26.5 | osh-nosouffle | mut+alloc+free |
| 33 | 23 | 10 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 28 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 38 | 27 | 11 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 35 | 10 | 22.7 | _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 | 41 | 1 | 3.3 | bash | - |
| 325 | 188 | 160 | 3.7 | zsh | - |
| 44 | 35 | 9 | 85.9 | bumpleak/osh | mut |
| 48 | 40 | 8 | 86.7 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 50 | 9 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 50 | 31 | 73.7 | osh-native | mut+alloc |
| 89 | 58 | 31 | 75.5 | osh-native | mut+alloc+free |
| 136 | 108 | 28 | 51.6 | osh-native | mut+alloc+free+gc |
| 154 | 139 | 15 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 106 | 77 | 29 | 74.2 | osh-nosouffle | mut+alloc |
| 99 | 71 | 28 | 75.9 | osh-nosouffle | mut+alloc+free |
| 138 | 111 | 27 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 145 | 120 | 25 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 77 | 48 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 203 | 169 | 34 | 71.5 | _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 | 3 | 1 | 3.1 | bash | - |
| 6 | 3 | 4 | 3.4 | zsh | - |
| 6 | 3 | 4 | 12.3 | bumpleak/osh | mut |
| 6 | 4 | 2 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 5 | 1 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 6 | 2 | 10.4 | osh-native | mut+alloc |
| 8 | 6 | 2 | 10.6 | osh-native | mut+alloc+free |
| 10 | 9 | 1 | 8.8 | osh-native | mut+alloc+free+gc |
| 10 | 6 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 5 | 5 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 8 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.8 | _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 |
| 9 | 9 | 0 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 18 | 3 | 3.4 | zsh | - |
| 17 | 13 | 3 | 31.7 | bumpleak/osh | mut |
| 19 | 15 | 3 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 19 | 2 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 17 | 12 | 26.9 | osh-native | mut+alloc |
| 31 | 21 | 10 | 27.0 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 25 | 8 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 25 | 10 | 27.7 | osh-nosouffle | mut+alloc+free |
| 24 | 21 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 32 | 15 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 27 | 2 | 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 | 100 | 3 | 3.5 | bash | - |
| 212 | 159 | 53 | 56.7 | bumpleak/osh | mut |
| 222 | 174 | 48 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 177 | 62 | 58.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 254 | 185 | 69 | 48.8 | osh-native | mut+alloc |
| 261 | 201 | 60 | 50.7 | osh-native | mut+alloc+free |
| 221 | 193 | 28 | 9.2 | osh-native | mut+alloc+free+gc |
| 223 | 174 | 49 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 197 | 66 | 49.4 | osh-nosouffle | mut+alloc |
| 269 | 197 | 72 | 51.1 | osh-nosouffle | mut+alloc+free |
| 227 | 192 | 35 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 181 | 46 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 277 | 200 | 76 | 66.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 252 | 200 | 52 | 10.7 | _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 | 8 | 8 | 5.0 | bash | - |
| 15 | 7 | 9 | 3.9 | zsh | - |
| 18 | 12 | 7 | 12.8 | bumpleak/osh | mut |
| 18 | 9 | 10 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 8 | 12 | 14.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 9 | 10 | 11.7 | osh-native | mut+alloc |
| 21 | 9 | 13 | 11.7 | osh-native | mut+alloc+free |
| 21 | 12 | 9 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 9 | 13 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 10 | 11 | 12.2 | osh-nosouffle | mut+alloc |
| 21 | 10 | 12 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 21 | 13 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 16 | 7 | 12.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 13 | 11 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |