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,264 | 1,282 | 6 | 413,144 | 5 | 206,572 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 18.7 | 471,264 | 1,282 | 6 | 413,152 | 5 | 206,576 | osh-nosouffle |
| parse.configure-coreutils | 136 | 25 | 63 | 45.9 | 51.9 | 1,638,003 | 4,764 | 12 | 1,056,642 | 6 | 787,842 | osh-native |
| parse.configure-coreutils | 143 | 24 | 61 | 45.9 | 52.1 | 1,638,002 | 4,764 | 12 | 1,056,650 | 6 | 787,846 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,792 | 180 | 3 | 86,630 | 1 | 43,315 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,792 | 180 | 3 | 86,638 | 1 | 43,319 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 572,116 | 22,608 | 12 | 50,000 | 0 | 2,983 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,116 | 22,608 | 12 | 50,000 | 0 | 2,986 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 4 | 11.6 | 9.0 | 990,262 | 15,258 | 21 | 50,000 | 0 | 3,964 | osh-native |
| ex.bashcomp-parse-help | 228 | 0 | 3 | 11.6 | 9.4 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.6 | 117,220 | 277 | 3 | 83,992 | 1 | 41,996 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.1 | 117,219 | 277 | 3 | 84,000 | 1 | 42,000 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 13 | 10 | 3 | 3.3 | bash | - |
| 89 | 58 | 38 | 3.5 | zsh | - |
| 15 | 12 | 3 | 29.5 | bumpleak/osh | mut |
| 16 | 13 | 3 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 17 | 2 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 16 | 10 | 25.4 | osh-native | mut+alloc |
| 27 | 15 | 12 | 25.8 | osh-native | mut+alloc+free |
| 32 | 27 | 5 | 18.4 | osh-native | mut+alloc+free+gc |
| 33 | 30 | 3 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 17 | 11 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 21 | 9 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 27 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 27 | 7 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 38 | 25 | 13 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 33 | 12 | 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 | 22 | 1 | 1.7 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 326 | 190 | 159 | 3.7 | zsh | - |
| 44 | 34 | 10 | 86.2 | bumpleak/osh | mut |
| 48 | 40 | 8 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 50 | 9 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 53 | 29 | 73.7 | osh-native | mut+alloc |
| 91 | 62 | 28 | 75.4 | osh-native | mut+alloc+free |
| 136 | 117 | 19 | 51.9 | osh-native | mut+alloc+free+gc |
| 145 | 116 | 29 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 92 | 65 | 28 | 74.1 | osh-nosouffle | mut+alloc |
| 101 | 69 | 32 | 76.2 | osh-nosouffle | mut+alloc+free |
| 143 | 122 | 21 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 151 | 130 | 21 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 72 | 53 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 202 | 163 | 39 | 74.2 | _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 | 5 | 1 | 3.4 | zsh | - |
| 6 | 5 | 1 | 13.1 | bumpleak/osh | mut |
| 6 | 4 | 2 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.5 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.7 | osh-native | mut+alloc+free |
| 9 | 8 | 1 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 8 | 5 | 3 | 11.1 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 8 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.8 | _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 |
| 10 | 10 | 0 | 1.4 | dash | - |
| 30 | 29 | 1 | 3.4 | bash | - |
| 21 | 13 | 8 | 3.4 | zsh | - |
| 17 | 15 | 2 | 31.8 | bumpleak/osh | mut |
| 19 | 14 | 5 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 12 | 8 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 17 | 11 | 26.7 | osh-native | mut+alloc |
| 30 | 17 | 14 | 27.1 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 15 | 5 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 27 | 6 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 25 | 11 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 25 | 0 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 26 | 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 |
| 103 | 99 | 4 | 3.4 | bash | - |
| 213 | 174 | 39 | 56.2 | bumpleak/osh | mut |
| 221 | 157 | 64 | 56.9 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 192 | 47 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 257 | 180 | 77 | 48.9 | osh-native | mut+alloc |
| 267 | 206 | 61 | 50.7 | osh-native | mut+alloc+free |
| 221 | 179 | 42 | 9.0 | osh-native | mut+alloc+free+gc |
| 221 | 171 | 51 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 262 | 206 | 56 | 49.3 | osh-nosouffle | mut+alloc |
| 270 | 187 | 83 | 51.3 | osh-nosouffle | mut+alloc+free |
| 228 | 183 | 45 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 181 | 47 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 201 | 78 | 65.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 251 | 200 | 51 | 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 | 3 | 6 | 3.9 | dash | - |
| 16 | 8 | 9 | 4.8 | bash | - |
| 15 | 7 | 9 | 3.9 | zsh | - |
| 17 | 6 | 12 | 14.2 | bumpleak/osh | mut |
| 19 | 12 | 8 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 10 | 9 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 14 | 7 | 11.5 | osh-native | mut+alloc |
| 21 | 7 | 14 | 11.8 | osh-native | mut+alloc+free |
| 20 | 9 | 12 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 13 | 9 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 11 | 10 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 11 | 12 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 13 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 13 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 14 | 9 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 16 | 9 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |