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.4 | 471,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 34 | 4 | 10 | 12.0 | 18.7 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 128 | 22 | 56 | 45.9 | 51.7 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 139 | 22 | 57 | 45.9 | 52.3 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 9 | 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.3 | 102,791 | 180 | 3 | 86,636 | 1 | 43,318 | osh-nosouffle |
| ex.compute-fib | 19 | 0 | 1 | 2.8 | 8.3 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 24 | 0 | 1 | 2.8 | 8.7 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 218 | 0 | 3 | 11.6 | 9.0 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 224 | 0 | 3 | 11.6 | 9.4 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 20 | 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.1 | 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 | 6 | 1 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 87 | 49 | 45 | 3.4 | zsh | - |
| 15 | 14 | 1 | 30.2 | bumpleak/osh | mut |
| 16 | 13 | 3 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 12 | 7 | 30.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 17 | 8 | 25.6 | osh-native | mut+alloc |
| 27 | 14 | 13 | 25.8 | osh-native | mut+alloc+free |
| 32 | 27 | 5 | 18.4 | osh-native | mut+alloc+free+gc |
| 33 | 20 | 13 | 18.3 | osh-native | mut+alloc+free+gc+exit |
| 29 | 21 | 8 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 23 | 7 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 28 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 30 | 5 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 23 | 16 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 39 | 6 | 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 | 21 | 2 | 1.7 | dash | - |
| 43 | 42 | 1 | 3.5 | bash | - |
| 325 | 173 | 174 | 3.7 | zsh | - |
| 45 | 36 | 9 | 84.6 | bumpleak/osh | mut |
| 47 | 42 | 5 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 51 | 7 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 53 | 29 | 73.8 | osh-native | mut+alloc |
| 91 | 53 | 38 | 75.6 | osh-native | mut+alloc+free |
| 128 | 109 | 19 | 51.7 | osh-native | mut+alloc+free+gc |
| 134 | 112 | 22 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 91 | 56 | 35 | 74.2 | osh-nosouffle | mut+alloc |
| 99 | 64 | 35 | 75.9 | osh-nosouffle | mut+alloc+free |
| 139 | 119 | 19 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 143 | 123 | 20 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 82 | 43 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 187 | 158 | 30 | 74.0 | _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 | 4 | 0 | 3.3 | bash | - |
| 6 | 5 | 2 | 3.3 | zsh | - |
| 6 | 3 | 3 | 12.9 | bumpleak/osh | mut |
| 6 | 5 | 1 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 2 | 5 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 7 | 1 | 10.6 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.5 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 8 | 1 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc |
| 9 | 6 | 3 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 10 | 0 | 9.3 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 9 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 9 | 3 | 9.4 | _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.4 | dash | - |
| 30 | 29 | 1 | 3.3 | bash | - |
| 21 | 15 | 6 | 3.5 | zsh | - |
| 17 | 12 | 5 | 33.2 | bumpleak/osh | mut |
| 18 | 14 | 3 | 33.7 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 18 | 3 | 33.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 15 | 13 | 26.7 | osh-native | mut+alloc |
| 30 | 22 | 7 | 27.1 | osh-native | mut+alloc+free |
| 19 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 19 | 18 | 1 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 32 | 21 | 12 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 22 | 12 | 27.4 | osh-nosouffle | mut+alloc+free |
| 24 | 20 | 4 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 21 | 4 | 8.5 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 31 | 14 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 3 | 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 |
| 102 | 97 | 5 | 3.5 | bash | - |
| 211 | 157 | 54 | 56.8 | bumpleak/osh | mut |
| 218 | 165 | 53 | 57.7 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 175 | 64 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 254 | 194 | 60 | 48.6 | osh-native | mut+alloc |
| 262 | 189 | 73 | 50.7 | osh-native | mut+alloc+free |
| 218 | 183 | 35 | 9.0 | osh-native | mut+alloc+free+gc |
| 220 | 167 | 53 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 259 | 189 | 69 | 49.3 | osh-nosouffle | mut+alloc |
| 264 | 198 | 67 | 51.1 | osh-nosouffle | mut+alloc+free |
| 224 | 171 | 52 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 192 | 35 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 191 | 87 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 206 | 43 | 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 | 5 | 4.1 | dash | - |
| 16 | 6 | 10 | 4.8 | bash | - |
| 15 | 8 | 8 | 4.1 | zsh | - |
| 17 | 8 | 10 | 12.7 | bumpleak/osh | mut |
| 19 | 9 | 10 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 7 | 12 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 10 | 9 | 11.5 | osh-native | mut+alloc |
| 20 | 7 | 14 | 11.7 | osh-native | mut+alloc+free |
| 20 | 13 | 8 | 9.6 | osh-native | mut+alloc+free+gc |
| 20 | 10 | 11 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 9 | 11 | 12.1 | osh-nosouffle | mut+alloc |
| 21 | 14 | 8 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 11 | 12 | 9.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 12 | 11 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 10 | 13 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |