Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unflake BenchmarkSampler_CheckWithHook (#1016)
BenchmarkSampler_CheckWithHook was randomly failing esp. under load because under load, Zap sampler can end up dropping less than the expected amount (esp. with Hooks). Moreover, we were making a single comparison after all the benchmarks had run, which causes the time dilation effect to aggregate over all the tests, making it more likely to fail. This changes the benchmark to compare the dropped and sampled ratio in between test runs and test the dropped/sampled ratio. The change was verified by running the benchmark 500 times on a MacBook Pro i7 model as well as devpod (96 core Linux) and confirming no failures happened. Fix #996 Internal Ref: GO-858
- Loading branch information