feat(perf): measure error and stop automatically when the numbers are go...

...od enough.
Not sure if `findGoodSample` is a descriptive name for this function. It is not like we are looking for a sample. We execute the same code until the error is small enough. Maybe something like `sampleUntilStatsWithinError` would be better.