8292623: Reduce runtime of java.io microbenchmarks

Reviewed-by: rriggs
This commit is contained in:
Eric Caspole 2022-08-22 13:40:15 +00:00
parent dcd78020e4
commit e561933907
10 changed files with 44 additions and 2 deletions

View file

@ -37,6 +37,9 @@ import org.openjdk.jmh.annotations.*;
*/
@BenchmarkMode(Mode.Throughput)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Fork(2)
@Warmup(iterations = 4, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 4, time = 2, timeUnit = TimeUnit.SECONDS)
@State(Scope.Thread)
public class FileRead {