257747 nanoseconds replacing-only, 27177863 total nanoseconds WITH EXISTING split_off(), called flush 991 times 242326 nanoseconds replacing-only, 26403535 total nanoseconds replaced with `with_capacity()`, called flush 991 times 50284 nanoseconds replacing-only, 29194980 total nanoseconds replaced with `new()`, called flush 991 times ========================== BENCHMARK TEST ========================== pushing 200000 elements of size 20 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 279041 nanoseconds replacing-only, 53705109 total nanoseconds WITH EXISTING split_off(), called flush 996 times 260055 nanoseconds replacing-only, 52133947 total nanoseconds replaced with `with_capacity()`, called flush 996 times 50984 nanoseconds replacing-only, 55899614 total nanoseconds replaced with `new()`, called flush 996 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 40 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 376383 nanoseconds replacing-only, 107302329 total nanoseconds WITH EXISTING split_off(), called flush 998 times 265677 nanoseconds replacing-only, 104145135 total nanoseconds replaced with `with_capacity()`, called flush 998 times 50198 nanoseconds replacing-only, 103102952 total nanoseconds replaced with `new()`, called flush 998 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 80 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 763592 nanoseconds replacing-only, 214610887 total nanoseconds WITH EXISTING split_off(), called flush 999 times 257799 nanoseconds replacing-only, 208608681 total nanoseconds replaced with `with_capacity()`, called flush 999 times 50624 nanoseconds replacing-only, 205419571 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 160 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 1098165 nanoseconds replacing-only, 435000271 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 232370 nanoseconds replacing-only, 433864125 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 58764 nanoseconds replacing-only, 481934965 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 200000 elements of size 10 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 328133 nanoseconds replacing-only, 50743013 total nanoseconds WITH EXISTING split_off(), called flush 996 times 270290 nanoseconds replacing-only, 50666616 total nanoseconds replaced with `with_capacity()`, called flush 996 times 50518 nanoseconds replacing-only, 55288863 total nanoseconds replaced with `new()`, called flush 996 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 20 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 414425 nanoseconds replacing-only, 101165681 total nanoseconds WITH EXISTING split_off(), called flush 998 times 275782 nanoseconds replacing-only, 100959265 total nanoseconds replaced with `with_capacity()`, called flush 998 times 50828 nanoseconds replacing-only, 108916077 total nanoseconds replaced with `new()`, called flush 998 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 40 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 759155 nanoseconds replacing-only, 202033495 total nanoseconds WITH EXISTING split_off(), called flush 999 times 262671 nanoseconds replacing-only, 207397528 total nanoseconds replaced with `with_capacity()`, called flush 999 times 50586 nanoseconds replacing-only, 217088425 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 80 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 1184532 nanoseconds replacing-only, 427720843 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 258366 nanoseconds replacing-only, 420179269 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 50568 nanoseconds replacing-only, 408095955 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 3200000 elements of size 160 bytes into a Vec buffer flushed at max 3200 elements -------------------------------------------------------------------- 23529208 nanoseconds replacing-only, 910263587 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 249210 nanoseconds replacing-only, 870666779 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 71907 nanoseconds replacing-only, 1029218919 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 200000 elements of size 10 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 584394 nanoseconds replacing-only, 51167243 total nanoseconds WITH EXISTING split_off(), called flush 1981 times 528784 nanoseconds replacing-only, 51027822 total nanoseconds replaced with `with_capacity()`, called flush 1981 times 100742 nanoseconds replacing-only, 56395921 total nanoseconds replaced with `new()`, called flush 1981 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 20 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 675061 nanoseconds replacing-only, 101510694 total nanoseconds WITH EXISTING split_off(), called flush 1991 times 557829 nanoseconds replacing-only, 101281789 total nanoseconds replaced with `with_capacity()`, called flush 1991 times 100580 nanoseconds replacing-only, 104837567 total nanoseconds replaced with `new()`, called flush 1991 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 40 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 785930 nanoseconds replacing-only, 202490376 total nanoseconds WITH EXISTING split_off(), called flush 1996 times 566252 nanoseconds replacing-only, 202102058 total nanoseconds replaced with `with_capacity()`, called flush 1996 times 101043 nanoseconds replacing-only, 206156762 total nanoseconds replaced with `new()`, called flush 1996 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 80 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 1491523 nanoseconds replacing-only, 429263170 total nanoseconds WITH EXISTING split_off(), called flush 1998 times 552766 nanoseconds replacing-only, 405783808 total nanoseconds replaced with `with_capacity()`, called flush 1998 times 101917 nanoseconds replacing-only, 410625720 total nanoseconds replaced with `new()`, called flush 1998 times ========================== BENCHMARK TEST ========================== pushing 3200000 elements of size 160 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 2347719 nanoseconds replacing-only, 869594015 total nanoseconds WITH EXISTING split_off(), called flush 1999 times 472200 nanoseconds replacing-only, 867014596 total nanoseconds replaced with `with_capacity()`, called flush 1999 times 114303 nanoseconds replacing-only, 965379645 total nanoseconds replaced with `new()`, called flush 1999 times ========================== BENCHMARK TEST ========================== pushing 100000 elements of size 20 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 292514 nanoseconds replacing-only, 25578311 total nanoseconds WITH EXISTING split_off(), called flush 991 times 266185 nanoseconds replacing-only, 25525140 total nanoseconds replaced with `with_capacity()`, called flush 991 times 49990 nanoseconds replacing-only, 27024632 total nanoseconds replaced with `new()`, called flush 991 times ========================== BENCHMARK TEST ========================== pushing 200000 elements of size 40 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 329834 nanoseconds replacing-only, 50766004 total nanoseconds WITH EXISTING split_off(), called flush 996 times 273127 nanoseconds replacing-only, 50680153 total nanoseconds replaced with `with_capacity()`, called flush 996 times 50433 nanoseconds replacing-only, 52506851 total nanoseconds replaced with `new()`, called flush 996 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 80 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 412359 nanoseconds replacing-only, 108173681 total nanoseconds WITH EXISTING split_off(), called flush 998 times 262443 nanoseconds replacing-only, 105008557 total nanoseconds replaced with `with_capacity()`, called flush 998 times 51013 nanoseconds replacing-only, 109181496 total nanoseconds replaced with `new()`, called flush 998 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 160 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 736677 nanoseconds replacing-only, 218105823 total nanoseconds WITH EXISTING split_off(), called flush 999 times 229172 nanoseconds replacing-only, 217337386 total nanoseconds replaced with `with_capacity()`, called flush 999 times 50853 nanoseconds replacing-only, 221599416 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 320 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 12247198 nanoseconds replacing-only, 467258325 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 233202 nanoseconds replacing-only, 437800382 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 71271 nanoseconds replacing-only, 559575599 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 300000 elements of size 10 bytes into a Vec buffer flushed at max 300 elements -------------------------------------------------------------------- 393831 nanoseconds replacing-only, 75962753 total nanoseconds WITH EXISTING split_off(), called flush 997 times 271918 nanoseconds replacing-only, 75744584 total nanoseconds replaced with `with_capacity()`, called flush 997 times 50514 nanoseconds replacing-only, 82383137 total nanoseconds replaced with `new()`, called flush 997 times ========================== BENCHMARK TEST ========================== pushing 600000 elements of size 20 bytes into a Vec buffer flushed at max 600 elements -------------------------------------------------------------------- 548203 nanoseconds replacing-only, 151594269 total nanoseconds WITH EXISTING split_off(), called flush 999 times 306861 nanoseconds replacing-only, 155944497 total nanoseconds replaced with `with_capacity()`, called flush 999 times 50682 nanoseconds replacing-only, 163521636 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1200000 elements of size 40 bytes into a Vec buffer flushed at max 1200 elements -------------------------------------------------------------------- 956227 nanoseconds replacing-only, 319525615 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 269103 nanoseconds replacing-only, 313613190 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 50647 nanoseconds replacing-only, 304409948 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 2400000 elements of size 80 bytes into a Vec buffer flushed at max 2400 elements -------------------------------------------------------------------- 1652528 nanoseconds replacing-only, 641706474 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 234512 nanoseconds replacing-only, 640087797 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 54551 nanoseconds replacing-only, 686127377 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4800000 elements of size 160 bytes into a Vec buffer flushed at max 4800 elements -------------------------------------------------------------------- 37011438 nanoseconds replacing-only, 1554363115 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 302439 nanoseconds replacing-only, 1305277381 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 71899 nanoseconds replacing-only, 1550524791 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 300000 elements of size 10 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 907511 nanoseconds replacing-only, 76815298 total nanoseconds WITH EXISTING split_off(), called flush 2971 times 807665 nanoseconds replacing-only, 76610739 total nanoseconds replaced with `with_capacity()`, called flush 2971 times 150193 nanoseconds replacing-only, 84424994 total nanoseconds replaced with `new()`, called flush 2971 times ========================== BENCHMARK TEST ========================== pushing 600000 elements of size 20 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 978189 nanoseconds replacing-only, 152123054 total nanoseconds WITH EXISTING split_off(), called flush 2986 times 790681 nanoseconds replacing-only, 151926191 total nanoseconds replaced with `with_capacity()`, called flush 2986 times 149483 nanoseconds replacing-only, 157453501 total nanoseconds replaced with `new()`, called flush 2986 times ========================== BENCHMARK TEST ========================== pushing 1200000 elements of size 40 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 1261724 nanoseconds replacing-only, 303904330 total nanoseconds WITH EXISTING split_off(), called flush 2993 times 804740 nanoseconds replacing-only, 303160267 total nanoseconds replaced with `with_capacity()`, called flush 2993 times 151599 nanoseconds replacing-only, 309411851 total nanoseconds replaced with `new()`, called flush 2993 times ========================== BENCHMARK TEST ========================== pushing 2400000 elements of size 80 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 2241261 nanoseconds replacing-only, 644258491 total nanoseconds WITH EXISTING split_off(), called flush 2997 times 771019 nanoseconds replacing-only, 608722557 total nanoseconds replaced with `with_capacity()`, called flush 2997 times 153782 nanoseconds replacing-only, 616468829 total nanoseconds replaced with `new()`, called flush 2997 times ========================== BENCHMARK TEST ========================== pushing 4800000 elements of size 160 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 3324147 nanoseconds replacing-only, 1319740367 total nanoseconds WITH EXISTING split_off(), called flush 2999 times 701921 nanoseconds replacing-only, 1318490478 total nanoseconds replaced with `with_capacity()`, called flush 2999 times 179845 nanoseconds replacing-only, 1452084555 total nanoseconds replaced with `new()`, called flush 2999 times ========================== BENCHMARK TEST ========================== pushing 100000 elements of size 30 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 303615 nanoseconds replacing-only, 25604843 total nanoseconds WITH EXISTING split_off(), called flush 991 times 269418 nanoseconds replacing-only, 25569490 total nanoseconds replaced with `with_capacity()`, called flush 991 times 50236 nanoseconds replacing-only, 27024575 total nanoseconds replaced with `new()`, called flush 991 times ========================== BENCHMARK TEST ========================== pushing 200000 elements of size 60 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 336436 nanoseconds replacing-only, 50980085 total nanoseconds WITH EXISTING split_off(), called flush 996 times 275965 nanoseconds replacing-only, 50830787 total nanoseconds replaced with `with_capacity()`, called flush 996 times 50753 nanoseconds replacing-only, 52639905 total nanoseconds replaced with `new()`, called flush 996 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 120 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 442348 nanoseconds replacing-only, 108233521 total nanoseconds WITH EXISTING split_off(), called flush 998 times 246831 nanoseconds replacing-only, 105019997 total nanoseconds replaced with `with_capacity()`, called flush 998 times 51090 nanoseconds replacing-only, 104003531 total nanoseconds replaced with `new()`, called flush 998 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 240 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 747241 nanoseconds replacing-only, 217259230 total nanoseconds WITH EXISTING split_off(), called flush 999 times 228274 nanoseconds replacing-only, 216514878 total nanoseconds replaced with `with_capacity()`, called flush 999 times 51059 nanoseconds replacing-only, 220785383 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 480 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 11571673 nanoseconds replacing-only, 494755665 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 253948 nanoseconds replacing-only, 438545793 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 65628 nanoseconds replacing-only, 625034392 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 10 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 377366 nanoseconds replacing-only, 101160755 total nanoseconds WITH EXISTING split_off(), called flush 998 times 267683 nanoseconds replacing-only, 100978227 total nanoseconds replaced with `with_capacity()`, called flush 998 times 50553 nanoseconds replacing-only, 106499803 total nanoseconds replaced with `new()`, called flush 998 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 20 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 724212 nanoseconds replacing-only, 214761014 total nanoseconds WITH EXISTING split_off(), called flush 999 times 330246 nanoseconds replacing-only, 208040344 total nanoseconds replaced with `with_capacity()`, called flush 999 times 50748 nanoseconds replacing-only, 213826410 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 40 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 1164153 nanoseconds replacing-only, 427106800 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 296936 nanoseconds replacing-only, 418410232 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 50733 nanoseconds replacing-only, 405095751 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 3200000 elements of size 80 bytes into a Vec buffer flushed at max 3200 elements -------------------------------------------------------------------- 2079273 nanoseconds replacing-only, 855204278 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 234483 nanoseconds replacing-only, 854085924 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 53052 nanoseconds replacing-only, 914201526 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 6400000 elements of size 160 bytes into a Vec buffer flushed at max 6400 elements -------------------------------------------------------------------- 52390656 nanoseconds replacing-only, 1880413574 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 340049 nanoseconds replacing-only, 1760178037 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 94689 nanoseconds replacing-only, 2096871839 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 10 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 1172879 nanoseconds replacing-only, 102383619 total nanoseconds WITH EXISTING split_off(), called flush 3961 times 1122529 nanoseconds replacing-only, 102227739 total nanoseconds replaced with `with_capacity()`, called flush 3961 times 201993 nanoseconds replacing-only, 116355673 total nanoseconds replaced with `new()`, called flush 3961 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 20 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 1291389 nanoseconds replacing-only, 202922824 total nanoseconds WITH EXISTING split_off(), called flush 3981 times 1130590 nanoseconds replacing-only, 202674637 total nanoseconds replaced with `with_capacity()`, called flush 3981 times 205700 nanoseconds replacing-only, 224313405 total nanoseconds replaced with `new()`, called flush 3981 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 40 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 1575821 nanoseconds replacing-only, 405072845 total nanoseconds WITH EXISTING split_off(), called flush 3991 times 1105502 nanoseconds replacing-only, 404629905 total nanoseconds replaced with `with_capacity()`, called flush 3991 times 202001 nanoseconds replacing-only, 436081935 total nanoseconds replaced with `new()`, called flush 3991 times ========================== BENCHMARK TEST ========================== pushing 3200000 elements of size 80 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 3024145 nanoseconds replacing-only, 864038188 total nanoseconds WITH EXISTING split_off(), called flush 3996 times 1099626 nanoseconds replacing-only, 837164937 total nanoseconds replaced with `with_capacity()`, called flush 3996 times 203717 nanoseconds replacing-only, 822681994 total nanoseconds replaced with `new()`, called flush 3996 times ========================== BENCHMARK TEST ========================== pushing 6400000 elements of size 160 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 4680428 nanoseconds replacing-only, 1741752807 total nanoseconds WITH EXISTING split_off(), called flush 3998 times 919387 nanoseconds replacing-only, 1736894501 total nanoseconds replaced with `with_capacity()`, called flush 3998 times 203591 nanoseconds replacing-only, 1758843025 total nanoseconds replaced with `new()`, called flush 3998 times ========================== BENCHMARK TEST ========================== pushing 100000 elements of size 40 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 293589 nanoseconds replacing-only, 25603135 total nanoseconds WITH EXISTING split_off(), called flush 991 times 272944 nanoseconds replacing-only, 25601732 total nanoseconds replaced with `with_capacity()`, called flush 991 times 50377 nanoseconds replacing-only, 28234573 total nanoseconds replaced with `new()`, called flush 991 times ========================== BENCHMARK TEST ========================== pushing 200000 elements of size 80 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 345826 nanoseconds replacing-only, 51270034 total nanoseconds WITH EXISTING split_off(), called flush 996 times 286971 nanoseconds replacing-only, 51140864 total nanoseconds replaced with `with_capacity()`, called flush 996 times 50557 nanoseconds replacing-only, 52959262 total nanoseconds replaced with `new()`, called flush 996 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 160 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 443593 nanoseconds replacing-only, 110212034 total nanoseconds WITH EXISTING split_off(), called flush 998 times 227084 nanoseconds replacing-only, 110051939 total nanoseconds replaced with `with_capacity()`, called flush 998 times 50908 nanoseconds replacing-only, 112975850 total nanoseconds replaced with `new()`, called flush 998 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 320 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 702614 nanoseconds replacing-only, 220156134 total nanoseconds WITH EXISTING split_off(), called flush 999 times 223773 nanoseconds replacing-only, 219252674 total nanoseconds replaced with `with_capacity()`, called flush 999 times 51066 nanoseconds replacing-only, 223583680 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 640 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 12558477 nanoseconds replacing-only, 532078747 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 261402 nanoseconds replacing-only, 446592035 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 70812 nanoseconds replacing-only, 712450716 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 500000 elements of size 10 bytes into a Vec buffer flushed at max 500 elements -------------------------------------------------------------------- 467128 nanoseconds replacing-only, 126415168 total nanoseconds WITH EXISTING split_off(), called flush 999 times 278717 nanoseconds replacing-only, 126078879 total nanoseconds replaced with `with_capacity()`, called flush 999 times 50825 nanoseconds replacing-only, 135567504 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1000000 elements of size 20 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 856568 nanoseconds replacing-only, 267795358 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 343893 nanoseconds replacing-only, 259685213 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 50685 nanoseconds replacing-only, 269497652 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 2000000 elements of size 40 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 1272236 nanoseconds replacing-only, 530837820 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 303271 nanoseconds replacing-only, 522371089 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 50925 nanoseconds replacing-only, 505608868 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 80 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 2480802 nanoseconds replacing-only, 1067264177 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 232766 nanoseconds replacing-only, 1066140271 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 55030 nanoseconds replacing-only, 1155304504 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 160 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 64628454 nanoseconds replacing-only, 2427924961 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 349667 nanoseconds replacing-only, 2208518485 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 97277 nanoseconds replacing-only, 2652651061 total nanoseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 500000 elements of size 10 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 1519030 nanoseconds replacing-only, 127940400 total nanoseconds WITH EXISTING split_off(), called flush 4951 times 1362463 nanoseconds replacing-only, 127746826 total nanoseconds replaced with `with_capacity()`, called flush 4951 times 251173 nanoseconds replacing-only, 145783744 total nanoseconds replaced with `new()`, called flush 4951 times ========================== BENCHMARK TEST ========================== pushing 1000000 elements of size 20 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 1681073 nanoseconds replacing-only, 253765390 total nanoseconds WITH EXISTING split_off(), called flush 4976 times 1391015 nanoseconds replacing-only, 253311018 total nanoseconds replaced with `with_capacity()`, called flush 4976 times 252761 nanoseconds replacing-only, 272171568 total nanoseconds replaced with `new()`, called flush 4976 times ========================== BENCHMARK TEST ========================== pushing 2000000 elements of size 40 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 1980851 nanoseconds replacing-only, 506464762 total nanoseconds WITH EXISTING split_off(), called flush 4988 times 1406077 nanoseconds replacing-only, 505478373 total nanoseconds replaced with `with_capacity()`, called flush 4988 times 252029 nanoseconds replacing-only, 515702573 total nanoseconds replaced with `new()`, called flush 4988 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 80 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 3700778 nanoseconds replacing-only, 1078054311 total nanoseconds WITH EXISTING split_off(), called flush 4994 times 1330481 nanoseconds replacing-only, 1014812504 total nanoseconds replaced with `with_capacity()`, called flush 4994 times 254847 nanoseconds replacing-only, 1027436669 total nanoseconds replaced with `new()`, called flush 4994 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 160 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 6092253 nanoseconds replacing-only, 2177262544 total nanoseconds WITH EXISTING split_off(), called flush 4997 times 1151608 nanoseconds replacing-only, 2170280910 total nanoseconds replaced with `with_capacity()`, called flush 4997 times 302464 nanoseconds replacing-only, 2413143648 total nanoseconds replaced with `new()`, called flush 4997 times ========================== BENCHMARK TEST ========================== pushing 100000 elements of size 50 bytes into a Vec buffer flushed at max 100 elements -------------------------------------------------------------------- 297663 nanoseconds replacing-only, 25643531 total nanoseconds WITH EXISTING split_off(), called flush 991 times 263819 nanoseconds replacing-only, 25578753 total nanoseconds replaced with `with_capacity()`, called flush 991 times 50129 nanoseconds replacing-only, 27020509 total nanoseconds replaced with `new()`, called flush 991 times ========================== BENCHMARK TEST ========================== pushing 200000 elements of size 100 bytes into a Vec buffer flushed at max 200 elements -------------------------------------------------------------------- 326479 nanoseconds replacing-only, 51254884 total nanoseconds WITH EXISTING split_off(), called flush 996 times 265779 nanoseconds replacing-only, 51150895 total nanoseconds replaced with `with_capacity()`, called flush 996 times 50768 nanoseconds replacing-only, 52917632 total nanoseconds replaced with `new()`, called flush 996 times ========================== BENCHMARK TEST ========================== pushing 400000 elements of size 200 bytes into a Vec buffer flushed at max 400 elements -------------------------------------------------------------------- 405612 nanoseconds replacing-only, 110710881 total nanoseconds WITH EXISTING split_off(), called flush 998 times 229020 nanoseconds replacing-only, 110511897 total nanoseconds replaced with `with_capacity()`, called flush 998 times 50824 nanoseconds replacing-only, 113564131 total nanoseconds replaced with `new()`, called flush 998 times ========================== BENCHMARK TEST ========================== pushing 800000 elements of size 400 bytes into a Vec buffer flushed at max 800 elements -------------------------------------------------------------------- 749418 nanoseconds replacing-only, 218534354 total nanoseconds WITH EXISTING split_off(), called flush 999 times 226982 nanoseconds replacing-only, 216558466 total nanoseconds replaced with `with_capacity()`, called flush 999 times 63094 nanoseconds replacing-only, 273430942 total nanoseconds replaced with `new()`, called flush 999 times ========================== BENCHMARK TEST ========================== pushing 1600000 elements of size 800 bytes into a Vec buffer flushed at max 1600 elements -------------------------------------------------------------------- 12973675 nanoseconds replacing-only, 576168430 total nanoseconds WITH EXISTING split_off(), called flush 1000 times 270787 nanoseconds replacing-only, 461517684 total nanoseconds replaced with `with_capacity()`, called flush 1000 times 78779 nanoseconds replacing-only, 804092488 total nanoseconds replaced with `new()`, called flush 1000 times