0
OpenJDK JMH를 사용하고 있으며 메소드와 실행 클래스에 모두 주석을 달았지만 기본적으로 실행됩니다. jUnit을 사용하여 테스트 폴더에서이 벤치 마크를 실행하고 있습니다.Java MicroBenchmarking 하네스 벤치 마크 옵션을 무시합니다.
@Warmup(iterations = 5, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 5, timeUnit = TimeUnit.MILLISECONDS)
@Fork(value = 3)
@BenchmarkMode(Mode.AverageTime)
public class MyBenchmark {
@Benchmark
public void testMethod()
{
testHashFinderMethod_1();
}
private void testHashFinderMethod_1()
{
HashFinder hashFinder_1 = new HashFinder("TeSt",'A','z');
hashFinder_1.findHash("");
}
}