How Go's Benchmarking Harness Repeats Until It's Sure
testing.B runs your benchmark with a guessed iteration count, measures how long that took, predicts a better count, and repeats until the total hits the -benchtime target.
testing.B runs your benchmark with a guessed iteration count, measures how long that took, predicts a better count, and repeats until the total hits the -benchtime target.