106569 microseconds flushing and dropping, 530499 total microseconds WITH EXISTING split_off(), called flush 1000 times 102552 microseconds flushing and dropping, 520481 total microseconds replaced with `with_capacity()`, called flush 1000 times 94985 microseconds flushing and dropping, 505626 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 40 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 215509 microseconds flushing and dropping, 1064065 total microseconds WITH EXISTING split_off(), called flush 1000 times 211714 microseconds flushing and dropping, 1058633 total microseconds replaced with `with_capacity()`, called flush 1000 times 213748 microseconds flushing and dropping, 1094522 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 80 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 492962 microseconds flushing and dropping, 2364914 total microseconds WITH EXISTING split_off(), called flush 1000 times 424079 microseconds flushing and dropping, 2131290 total microseconds replaced with `with_capacity()`, called flush 1000 times 436392 microseconds flushing and dropping, 2369524 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 160 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 1153162 microseconds flushing and dropping, 5361937 total microseconds WITH EXISTING split_off(), called flush 1000 times 943111 microseconds flushing and dropping, 4394122 total microseconds replaced with `with_capacity()`, called flush 1000 times 1034187 microseconds flushing and dropping, 5387583 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 2000000 elements of size 10 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 105941 microseconds flushing and dropping, 530027 total microseconds WITH EXISTING split_off(), called flush 1000 times 102838 microseconds flushing and dropping, 521169 total microseconds replaced with `with_capacity()`, called flush 1000 times 95028 microseconds flushing and dropping, 505495 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 20 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 213581 microseconds flushing and dropping, 1059856 total microseconds WITH EXISTING split_off(), called flush 1000 times 211931 microseconds flushing and dropping, 1057274 total microseconds replaced with `with_capacity()`, called flush 1000 times 208904 microseconds flushing and dropping, 1061415 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 40 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 423003 microseconds flushing and dropping, 2116622 total microseconds WITH EXISTING split_off(), called flush 1000 times 423215 microseconds flushing and dropping, 2114561 total microseconds replaced with `with_capacity()`, called flush 1000 times 413543 microseconds flushing and dropping, 2118070 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 80 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 995414 microseconds flushing and dropping, 4540256 total microseconds WITH EXISTING split_off(), called flush 1000 times 854148 microseconds flushing and dropping, 4268453 total microseconds replaced with `with_capacity()`, called flush 1000 times 883330 microseconds flushing and dropping, 4816517 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 32000000 elements of size 160 bytes into a Vec buffer flushed at max 32000 elements -------------------------------------------------------------------- 2328414 microseconds flushing and dropping, 10818800 total microseconds WITH EXISTING split_off(), called flush 1000 times 1889727 microseconds flushing and dropping, 8792259 total microseconds replaced with `with_capacity()`, called flush 1000 times 2133139 microseconds flushing and dropping, 10935880 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 2000000 elements of size 10 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 107438 microseconds flushing and dropping, 531765 total microseconds WITH EXISTING split_off(), called flush 1999 times 100825 microseconds flushing and dropping, 517165 total microseconds replaced with `with_capacity()`, called flush 1999 times 105973 microseconds flushing and dropping, 537512 total microseconds replaced with `new()`, called flush 1999 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 20 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 210667 microseconds flushing and dropping, 1058669 total microseconds WITH EXISTING split_off(), called flush 2000 times 208907 microseconds flushing and dropping, 1056301 total microseconds replaced with `with_capacity()`, called flush 2000 times 190461 microseconds flushing and dropping, 1011489 total microseconds replaced with `new()`, called flush 2000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 40 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 422368 microseconds flushing and dropping, 2117380 total microseconds WITH EXISTING split_off(), called flush 2000 times 424425 microseconds flushing and dropping, 2116990 total microseconds replaced with `with_capacity()`, called flush 2000 times 410805 microseconds flushing and dropping, 2120471 total microseconds replaced with `new()`, called flush 2000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 80 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 851808 microseconds flushing and dropping, 4268412 total microseconds WITH EXISTING split_off(), called flush 2000 times 849144 microseconds flushing and dropping, 4261366 total microseconds replaced with `with_capacity()`, called flush 2000 times 830964 microseconds flushing and dropping, 4272284 total microseconds replaced with `new()`, called flush 2000 times ========================== BENCHMARK TEST ========================== pushing 32000000 elements of size 160 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 2214537 microseconds flushing and dropping, 9731351 total microseconds WITH EXISTING split_off(), called flush 2000 times 1883798 microseconds flushing and dropping, 8784009 total microseconds replaced with `with_capacity()`, called flush 2000 times 2067057 microseconds flushing and dropping, 10792549 total microseconds replaced with `new()`, called flush 2000 times ========================== BENCHMARK TEST ========================== pushing 1000000 elements of size 20 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 53725 microseconds flushing and dropping, 265986 total microseconds WITH EXISTING split_off(), called flush 1000 times 50541 microseconds flushing and dropping, 258677 total microseconds replaced with `with_capacity()`, called flush 1000 times 53038 microseconds flushing and dropping, 269139 total microseconds 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 -------------------------------------------------------------------- 103676 microseconds flushing and dropping, 528462 total microseconds WITH EXISTING split_off(), called flush 1000 times 102656 microseconds flushing and dropping, 520986 total microseconds replaced with `with_capacity()`, called flush 1000 times 94908 microseconds flushing and dropping, 505112 total microseconds 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 -------------------------------------------------------------------- 209917 microseconds flushing and dropping, 1064364 total microseconds WITH EXISTING split_off(), called flush 1000 times 211103 microseconds flushing and dropping, 1064043 total microseconds replaced with `with_capacity()`, called flush 1000 times 206544 microseconds flushing and dropping, 1068486 total microseconds 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 -------------------------------------------------------------------- 480070 microseconds flushing and dropping, 2207913 total microseconds WITH EXISTING split_off(), called flush 1000 times 469216 microseconds flushing and dropping, 2194470 total microseconds replaced with `with_capacity()`, called flush 1000 times 495210 microseconds flushing and dropping, 2632402 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 320 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 1302945 microseconds flushing and dropping, 5476218 total microseconds WITH EXISTING split_off(), called flush 1000 times 1096347 microseconds flushing and dropping, 4606931 total microseconds replaced with `with_capacity()`, called flush 1000 times 1249929 microseconds flushing and dropping, 6367433 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 3000000 elements of size 10 bytes into a Vec buffer flushed at max 3000 elements -------------------------------------------------------------------- 160649 microseconds flushing and dropping, 794635 total microseconds WITH EXISTING split_off(), called flush 1000 times 159135 microseconds flushing and dropping, 793291 total microseconds replaced with `with_capacity()`, called flush 1000 times 157217 microseconds flushing and dropping, 797581 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 6000000 elements of size 20 bytes into a Vec buffer flushed at max 6000 elements -------------------------------------------------------------------- 320310 microseconds flushing and dropping, 1586489 total microseconds WITH EXISTING split_off(), called flush 1000 times 317932 microseconds flushing and dropping, 1584156 total microseconds replaced with `with_capacity()`, called flush 1000 times 313947 microseconds flushing and dropping, 1590756 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 12000000 elements of size 40 bytes into a Vec buffer flushed at max 12000 elements -------------------------------------------------------------------- 646603 microseconds flushing and dropping, 3198491 total microseconds WITH EXISTING split_off(), called flush 1000 times 634845 microseconds flushing and dropping, 3173378 total microseconds replaced with `with_capacity()`, called flush 1000 times 624164 microseconds flushing and dropping, 3181476 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 24000000 elements of size 80 bytes into a Vec buffer flushed at max 24000 elements -------------------------------------------------------------------- 1313675 microseconds flushing and dropping, 6434870 total microseconds WITH EXISTING split_off(), called flush 1000 times 1283920 microseconds flushing and dropping, 6403626 total microseconds replaced with `with_capacity()`, called flush 1000 times 1338545 microseconds flushing and dropping, 7282161 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 48000000 elements of size 160 bytes into a Vec buffer flushed at max 48000 elements -------------------------------------------------------------------- 3496143 microseconds flushing and dropping, 16264631 total microseconds WITH EXISTING split_off(), called flush 1000 times 2826832 microseconds flushing and dropping, 13180217 total microseconds replaced with `with_capacity()`, called flush 1000 times 3084746 microseconds flushing and dropping, 16278057 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 3000000 elements of size 10 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 161454 microseconds flushing and dropping, 797622 total microseconds WITH EXISTING split_off(), called flush 2998 times 151757 microseconds flushing and dropping, 776076 total microseconds replaced with `with_capacity()`, called flush 2998 times 158959 microseconds flushing and dropping, 806496 total microseconds replaced with `new()`, called flush 2998 times ========================== BENCHMARK TEST ========================== pushing 6000000 elements of size 20 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 321086 microseconds flushing and dropping, 1608099 total microseconds WITH EXISTING split_off(), called flush 2999 times 308330 microseconds flushing and dropping, 1562076 total microseconds replaced with `with_capacity()`, called flush 2999 times 285357 microseconds flushing and dropping, 1516709 total microseconds replaced with `new()`, called flush 2999 times ========================== BENCHMARK TEST ========================== pushing 12000000 elements of size 40 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 633733 microseconds flushing and dropping, 3176809 total microseconds WITH EXISTING split_off(), called flush 3000 times 635668 microseconds flushing and dropping, 3176201 total microseconds replaced with `with_capacity()`, called flush 3000 times 621418 microseconds flushing and dropping, 3187180 total microseconds replaced with `new()`, called flush 3000 times ========================== BENCHMARK TEST ========================== pushing 24000000 elements of size 80 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 1285831 microseconds flushing and dropping, 6442070 total microseconds WITH EXISTING split_off(), called flush 3000 times 1272598 microseconds flushing and dropping, 6393434 total microseconds replaced with `with_capacity()`, called flush 3000 times 1243461 microseconds flushing and dropping, 6407295 total microseconds replaced with `new()`, called flush 3000 times ========================== BENCHMARK TEST ========================== pushing 48000000 elements of size 160 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 2925513 microseconds flushing and dropping, 13318817 total microseconds WITH EXISTING split_off(), called flush 3000 times 2839351 microseconds flushing and dropping, 13191050 total microseconds replaced with `with_capacity()`, called flush 3000 times 3085642 microseconds flushing and dropping, 16147295 total microseconds replaced with `new()`, called flush 3000 times ========================== BENCHMARK TEST ========================== pushing 1000000 elements of size 30 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 53527 microseconds flushing and dropping, 266135 total microseconds WITH EXISTING split_off(), called flush 1000 times 50140 microseconds flushing and dropping, 258589 total microseconds replaced with `with_capacity()`, called flush 1000 times 52999 microseconds flushing and dropping, 269257 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 2000000 elements of size 60 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 104961 microseconds flushing and dropping, 530630 total microseconds WITH EXISTING split_off(), called flush 1000 times 102545 microseconds flushing and dropping, 521756 total microseconds replaced with `with_capacity()`, called flush 1000 times 94331 microseconds flushing and dropping, 505809 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 120 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 211010 microseconds flushing and dropping, 1065865 total microseconds WITH EXISTING split_off(), called flush 1000 times 211430 microseconds flushing and dropping, 1064650 total microseconds replaced with `with_capacity()`, called flush 1000 times 206355 microseconds flushing and dropping, 1068602 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 240 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 501259 microseconds flushing and dropping, 2218283 total microseconds WITH EXISTING split_off(), called flush 1000 times 534853 microseconds flushing and dropping, 2247726 total microseconds replaced with `with_capacity()`, called flush 1000 times 514765 microseconds flushing and dropping, 2249910 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 480 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 1368826 microseconds flushing and dropping, 5914698 total microseconds WITH EXISTING split_off(), called flush 1000 times 1122236 microseconds flushing and dropping, 4636668 total microseconds replaced with `with_capacity()`, called flush 1000 times 1328659 microseconds flushing and dropping, 7128894 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 10 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 214115 microseconds flushing and dropping, 1060597 total microseconds WITH EXISTING split_off(), called flush 1000 times 213722 microseconds flushing and dropping, 1064762 total microseconds replaced with `with_capacity()`, called flush 1000 times 212175 microseconds flushing and dropping, 1065251 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 20 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 429306 microseconds flushing and dropping, 2119243 total microseconds WITH EXISTING split_off(), called flush 1000 times 423925 microseconds flushing and dropping, 2114421 total microseconds replaced with `with_capacity()`, called flush 1000 times 423381 microseconds flushing and dropping, 2122912 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 40 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 855601 microseconds flushing and dropping, 4247354 total microseconds WITH EXISTING split_off(), called flush 1000 times 849086 microseconds flushing and dropping, 4236114 total microseconds replaced with `with_capacity()`, called flush 1000 times 831179 microseconds flushing and dropping, 4239177 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 32000000 elements of size 80 bytes into a Vec buffer flushed at max 32000 elements -------------------------------------------------------------------- 1735766 microseconds flushing and dropping, 8567380 total microseconds WITH EXISTING split_off(), called flush 1000 times 1698811 microseconds flushing and dropping, 8522652 total microseconds replaced with `with_capacity()`, called flush 1000 times 1772545 microseconds flushing and dropping, 9645759 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 64000000 elements of size 160 bytes into a Vec buffer flushed at max 64000 elements -------------------------------------------------------------------- 4694368 microseconds flushing and dropping, 19961569 total microseconds WITH EXISTING split_off(), called flush 1000 times 3813827 microseconds flushing and dropping, 17650053 total microseconds replaced with `with_capacity()`, called flush 1000 times 4361194 microseconds flushing and dropping, 22119853 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 10 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 192424 microseconds flushing and dropping, 1008913 total microseconds WITH EXISTING split_off(), called flush 3997 times 190435 microseconds flushing and dropping, 1005873 total microseconds replaced with `with_capacity()`, called flush 3997 times 188996 microseconds flushing and dropping, 1055875 total microseconds replaced with `new()`, called flush 3997 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 20 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 445127 microseconds flushing and dropping, 2191208 total microseconds WITH EXISTING split_off(), called flush 3999 times 405292 microseconds flushing and dropping, 2071964 total microseconds replaced with `with_capacity()`, called flush 3999 times 382608 microseconds flushing and dropping, 2124573 total microseconds replaced with `new()`, called flush 3999 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 40 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 854864 microseconds flushing and dropping, 4242487 total microseconds WITH EXISTING split_off(), called flush 4000 times 848736 microseconds flushing and dropping, 4238075 total microseconds replaced with `with_capacity()`, called flush 4000 times 848516 microseconds flushing and dropping, 4262982 total microseconds replaced with `new()`, called flush 4000 times ========================== BENCHMARK TEST ========================== pushing 32000000 elements of size 80 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 1704604 microseconds flushing and dropping, 8541530 total microseconds WITH EXISTING split_off(), called flush 4000 times 1690842 microseconds flushing and dropping, 8517604 total microseconds replaced with `with_capacity()`, called flush 4000 times 1665942 microseconds flushing and dropping, 8548679 total microseconds replaced with `new()`, called flush 4000 times ========================== BENCHMARK TEST ========================== pushing 64000000 elements of size 160 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 3892872 microseconds flushing and dropping, 17724741 total microseconds WITH EXISTING split_off(), called flush 4000 times 3788225 microseconds flushing and dropping, 17590840 total microseconds replaced with `with_capacity()`, called flush 4000 times 3788685 microseconds flushing and dropping, 17752805 total microseconds replaced with `new()`, called flush 4000 times ========================== BENCHMARK TEST ========================== pushing 1000000 elements of size 40 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 48027 microseconds flushing and dropping, 252183 total microseconds WITH EXISTING split_off(), called flush 1000 times 47634 microseconds flushing and dropping, 251540 total microseconds replaced with `with_capacity()`, called flush 1000 times 47050 microseconds flushing and dropping, 267865 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 2000000 elements of size 80 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 106858 microseconds flushing and dropping, 534363 total microseconds WITH EXISTING split_off(), called flush 1000 times 94843 microseconds flushing and dropping, 505147 total microseconds replaced with `with_capacity()`, called flush 1000 times 94425 microseconds flushing and dropping, 507690 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 160 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 220155 microseconds flushing and dropping, 1083315 total microseconds WITH EXISTING split_off(), called flush 1000 times 216448 microseconds flushing and dropping, 1078336 total microseconds replaced with `with_capacity()`, called flush 1000 times 215802 microseconds flushing and dropping, 1085790 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 320 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 560996 microseconds flushing and dropping, 2314032 total microseconds WITH EXISTING split_off(), called flush 1000 times 548137 microseconds flushing and dropping, 2300711 total microseconds replaced with `with_capacity()`, called flush 1000 times 548065 microseconds flushing and dropping, 2319454 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 640 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 1413536 microseconds flushing and dropping, 6361496 total microseconds WITH EXISTING split_off(), called flush 1000 times 1132153 microseconds flushing and dropping, 4696605 total microseconds replaced with `with_capacity()`, called flush 1000 times 1415278 microseconds flushing and dropping, 8002207 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 5000000 elements of size 10 bytes into a Vec buffer flushed at max 5000 elements -------------------------------------------------------------------- 269847 microseconds flushing and dropping, 1332941 total microseconds WITH EXISTING split_off(), called flush 1000 times 265194 microseconds flushing and dropping, 1322685 total microseconds replaced with `with_capacity()`, called flush 1000 times 265155 microseconds flushing and dropping, 1331590 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 10000000 elements of size 20 bytes into a Vec buffer flushed at max 10000 elements -------------------------------------------------------------------- 538060 microseconds flushing and dropping, 2655640 total microseconds WITH EXISTING split_off(), called flush 1000 times 530354 microseconds flushing and dropping, 2642525 total microseconds replaced with `with_capacity()`, called flush 1000 times 529230 microseconds flushing and dropping, 2650132 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 20000000 elements of size 40 bytes into a Vec buffer flushed at max 20000 elements -------------------------------------------------------------------- 1088055 microseconds flushing and dropping, 5320897 total microseconds WITH EXISTING split_off(), called flush 1000 times 1060315 microseconds flushing and dropping, 5291240 total microseconds replaced with `with_capacity()`, called flush 1000 times 1040386 microseconds flushing and dropping, 5312987 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 40000000 elements of size 80 bytes into a Vec buffer flushed at max 40000 elements -------------------------------------------------------------------- 2192562 microseconds flushing and dropping, 10717473 total microseconds WITH EXISTING split_off(), called flush 1000 times 2123377 microseconds flushing and dropping, 10652295 total microseconds replaced with `with_capacity()`, called flush 1000 times 2234530 microseconds flushing and dropping, 12178036 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 80000000 elements of size 160 bytes into a Vec buffer flushed at max 80000 elements -------------------------------------------------------------------- 6332666 microseconds flushing and dropping, 27918683 total microseconds WITH EXISTING split_off(), called flush 1000 times 4805927 microseconds flushing and dropping, 22105680 total microseconds replaced with `with_capacity()`, called flush 1000 times 5420424 microseconds flushing and dropping, 27737753 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 5000000 elements of size 10 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 240499 microseconds flushing and dropping, 1260757 total microseconds WITH EXISTING split_off(), called flush 4996 times 239336 microseconds flushing and dropping, 1257723 total microseconds replaced with `with_capacity()`, called flush 4996 times 236184 microseconds flushing and dropping, 1310307 total microseconds replaced with `new()`, called flush 4996 times ========================== BENCHMARK TEST ========================== pushing 10000000 elements of size 20 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 537041 microseconds flushing and dropping, 2658527 total microseconds WITH EXISTING split_off(), called flush 4998 times 505087 microseconds flushing and dropping, 2582528 total microseconds replaced with `with_capacity()`, called flush 4998 times 475796 microseconds flushing and dropping, 2654335 total microseconds replaced with `new()`, called flush 4998 times ========================== BENCHMARK TEST ========================== pushing 20000000 elements of size 40 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 1066182 microseconds flushing and dropping, 5300259 total microseconds WITH EXISTING split_off(), called flush 4999 times 1058771 microseconds flushing and dropping, 5293841 total microseconds replaced with `with_capacity()`, called flush 4999 times 1060723 microseconds flushing and dropping, 5328537 total microseconds replaced with `new()`, called flush 4999 times ========================== BENCHMARK TEST ========================== pushing 40000000 elements of size 80 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 2128824 microseconds flushing and dropping, 10672544 total microseconds WITH EXISTING split_off(), called flush 5000 times 2115608 microseconds flushing and dropping, 10643907 total microseconds replaced with `with_capacity()`, called flush 5000 times 2080510 microseconds flushing and dropping, 10675846 total microseconds replaced with `new()`, called flush 5000 times ========================== BENCHMARK TEST ========================== pushing 80000000 elements of size 160 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 4866015 microseconds flushing and dropping, 22146634 total microseconds WITH EXISTING split_off(), called flush 5000 times 4737042 microseconds flushing and dropping, 21986845 total microseconds replaced with `with_capacity()`, called flush 5000 times 4718994 microseconds flushing and dropping, 22179580 total microseconds replaced with `new()`, called flush 5000 times ========================== BENCHMARK TEST ========================== pushing 1000000 elements of size 50 bytes into a Vec buffer flushed at max 1000 elements -------------------------------------------------------------------- 48028 microseconds flushing and dropping, 252409 total microseconds WITH EXISTING split_off(), called flush 1000 times 47045 microseconds flushing and dropping, 251609 total microseconds replaced with `with_capacity()`, called flush 1000 times 47023 microseconds flushing and dropping, 269387 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 2000000 elements of size 100 bytes into a Vec buffer flushed at max 2000 elements -------------------------------------------------------------------- 106843 microseconds flushing and dropping, 534350 total microseconds WITH EXISTING split_off(), called flush 1000 times 100667 microseconds flushing and dropping, 519986 total microseconds replaced with `with_capacity()`, called flush 1000 times 96382 microseconds flushing and dropping, 527222 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 4000000 elements of size 200 bytes into a Vec buffer flushed at max 4000 elements -------------------------------------------------------------------- 224485 microseconds flushing and dropping, 1096969 total microseconds WITH EXISTING split_off(), called flush 1000 times 219221 microseconds flushing and dropping, 1088814 total microseconds replaced with `with_capacity()`, called flush 1000 times 217856 microseconds flushing and dropping, 1098975 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 8000000 elements of size 400 bytes into a Vec buffer flushed at max 8000 elements -------------------------------------------------------------------- 565135 microseconds flushing and dropping, 2302848 total microseconds WITH EXISTING split_off(), called flush 1000 times 553299 microseconds flushing and dropping, 2280593 total microseconds replaced with `with_capacity()`, called flush 1000 times 550738 microseconds flushing and dropping, 2308620 total microseconds replaced with `new()`, called flush 1000 times ========================== BENCHMARK TEST ========================== pushing 16000000 elements of size 800 bytes into a Vec buffer flushed at max 16000 elements -------------------------------------------------------------------- 1457681 microseconds flushing and dropping, 6874286 total microseconds WITH EXISTING split_off(), called flush 1000 times 1134548 microseconds flushing and dropping, 4853667 total microseconds replaced with `with_capacity()`, called flush 1000 times 1475955 microseconds flushing and dropping, 8852789 total microseconds replaced with `new()`, called flush 1000 times