Tweak TSDBDocValuesMergeBenchmark (#126825)

to use benchmark mode single shot time.

Which makes more sense for benchmarking force merge. The sample time mode would invoke the benchmark methods many times, which in case of force merge is a noop.
This commit is contained in:
Martijn van Groningen 2025-04-15 13:03:01 +02:00 committed by GitHub
parent 050ac273a1
commit 0033de9ab3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@BenchmarkMode(Mode.SampleTime) @BenchmarkMode(Mode.SingleShotTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS) @OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Benchmark) @State(Scope.Benchmark)
@Fork(1) @Fork(1)