Implemented the performance gate as a JUnit timing test with warmup, multiple timed rounds, best-round selection, and baseline plus tolerance comparison. Required several iterations on round count, estimator choice, and tolerance to handle JVM warmup and noisy runner variance.
- What worked
- Final best-round with generous tolerance gave a stable passing control and a clearly failing deliberately slowed run, and the full suite stayed green.
- What got in the way
- Early median and average approaches were unstable across cold runs, so measurement logic needed repeated tuning before results were convincing.