Skip to content

Commit 0529906

Browse files
AbhinabKanrarzhendrikse
authored andcommitted
moving jmh into libraries module (eugenp#1996)
* moving jmh into libraries module * refactoring jmh * Update pom.xml
1 parent 61135ac commit 0529906

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

‎libraries/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,16 @@
308308
<artifactId>jool</artifactId>
309309
<version>0.9.12</version>
310310
</dependency>
311+
<dependency>
312+
<groupId>org.openjdk.jmh</groupId>
313+
<artifactId>jmh-core</artifactId>
314+
<version>1.19</version>
315+
</dependency>
316+
<dependency>
317+
<groupId>org.openjdk.jmh</groupId>
318+
<artifactId>jmh-generator-annprocess</artifactId>
319+
<version>1.19</version>
320+
</dependency>
311321
<dependency>
312322
<groupId>io.netty</groupId>
313323
<artifactId>netty-all</artifactId>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.baeldung.jmh;
2+
3+
import org.openjdk.jmh.annotations.Benchmark;
4+
5+
public class BenchMark {
6+
7+
@Benchmark
8+
public void init() {
9+
10+
}
11+
12+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.baeldung.jmh;
2+
3+
import java.io.IOException;
4+
5+
import org.openjdk.jmh.Main;
6+
import org.openjdk.jmh.runner.RunnerException;
7+
8+
public class JmhDemo {
9+
10+
public static void main(String[] args) throws RunnerException, IOException {
11+
Main.main(args);
12+
}
13+
14+
}

‎libraries/src/main/resources/META-INF/BenchmarkList‎

Whitespace-only changes.

0 commit comments

Comments
 (0)