There are modules to time two pieces of code and show the difference

You can write up the two versions you're thinking of, feed them to the
benchmark module, and show us what you find!


On Sun, Feb 3, 2019 at 9:36 PM ToddAndMargo via perl6-users <> wrote:

> Hi All,
> If I have a variable of type Buf which 10000000 bytes in it
> and I find the five bytes I want, is it faster, slower,
> or no difference in speed to overwrite the same variable
> with the five bytes?  Or is it faster to put the five bytes
> from the first variable into a second variable?
> Many thanks,
> -T

Reply via email to