8288673: Reduce runtime of java.time microbenchmarks

Reviewed-by: jvernee
This commit is contained in:
Claes Redestad 2022-06-20 10:21:51 +00:00
parent d917e1874e
commit 68bff04515
3 changed files with 7 additions and 7 deletions

View file

@ -47,8 +47,8 @@ import org.openjdk.jmh.annotations.Warmup;
*/
@BenchmarkMode(Mode.Throughput)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Warmup(iterations = 5, time = 1)
@Measurement(iterations = 5, time = 1)
@Fork(3)
@State(Scope.Benchmark)
public class InstantBench {