performance issue sampling with progress bar

Performance has tanked a bit since the 1.5.0 update.

Solving this issue should include adding benchmarks to be run regurarly in CI to catch performance regressions sooner

(1000 vs 4000 iterations per second)