Skip to content

Commit

Permalink
Add reasoning in JavaDoc about single shot mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Dec 20, 2024
1 parent 0e5d914 commit c8217f0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public void setup() {
}
}

/**
* Benchmark the time to remove one meter from a registry with many meters. This uses
* the single shot mode because otherwise it would measure the time to remove a meter
* not in the registry after the first call, and that is not what we want to measure.
*/
@Benchmark
@Warmup(iterations = 100)
@Measurement(iterations = 500)
Expand Down

0 comments on commit c8217f0

Please sign in to comment.