moving jmh into libraries module (#1996)
* moving jmh into libraries module * refactoring jmh * Update pom.xml
This commit is contained in:
committed by
Zeger Hendrikse
parent
61135ac4da
commit
0529906f47
@@ -0,0 +1,12 @@
|
||||
package com.baeldung.jmh;
|
||||
|
||||
import org.openjdk.jmh.annotations.Benchmark;
|
||||
|
||||
public class BenchMark {
|
||||
|
||||
@Benchmark
|
||||
public void init() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.baeldung.jmh;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.openjdk.jmh.Main;
|
||||
import org.openjdk.jmh.runner.RunnerException;
|
||||
|
||||
public class JmhDemo {
|
||||
|
||||
public static void main(String[] args) throws RunnerException, IOException {
|
||||
Main.main(args);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user