Hello
I noticed a weird behavior when I'm benchmarking with testing.B.Loop() code that uses iterators .
The benchmark shows allocations where I start to iterate the iterator, and where I declare variables (before the loop) that are used inside the iterator loop.
I know that my code is not doing any allocation, so it's strange.
If I change my benchmark to use the old "range b.N", then it doesn't show this strange behavior.
If I check allocations with "testing.AllocsPerRun", I don't see any allocation.
Is that a know issue ? Should I open a bug ?
What should I do ? Use the old benchmarking method ?
Regards