Refactoring based on the feedback
This commit is contained in:
parent
cd55a1b532
commit
80f9c20edf
@ -32,6 +32,7 @@
|
||||
<artifactId>jmh-core</artifactId>
|
||||
<version>${jmh.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.openjdk.jmh</groupId>
|
||||
<artifactId>jmh-generator-annprocess</artifactId>
|
||||
@ -41,39 +42,20 @@
|
||||
|
||||
<properties>
|
||||
<assertj-core.version>3.10.0</assertj-core.version>
|
||||
<jmh.version>1.22</jmh.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<jmh.version>1.33</jmh.version>
|
||||
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
|
||||
<jol-core.version>0.10</jol-core.version>
|
||||
<maven-assembly-plugin.version>3.2.0</maven-assembly-plugin.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>${maven-jar-plugin.version}</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>com.baeldung.BenchmarkRunner</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>${maven-assembly-plugin.version}</version>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>com.baeldung.jmh.BenchmarkRunner</mainClass>
|
||||
<mainClass>com.baeldung.copyArrayMethodsPerformance.BenchmarkRunner</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
|
@ -1,8 +1,9 @@
|
||||
package com.baeldung.jmh;
|
||||
package com.baeldung.copyArrayMethodsPerformance;
|
||||
|
||||
public class BenchmarkRunner {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
org.openjdk.jmh.Main.main(args);
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.baeldung.jmh;
|
||||
package com.baeldung.copyArrayMethodsPerformance;
|
||||
|
||||
import org.openjdk.jmh.annotations.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.baeldung.jmh;
|
||||
package com.baeldung.copyArrayMethodsPerformance;
|
||||
|
||||
import org.openjdk.jmh.annotations.*;
|
||||
|
||||
@ -16,6 +16,7 @@ public class PrimitivesCopyBenchmark {
|
||||
|
||||
@Param({ "10", "1000000" })
|
||||
public int SIZE;
|
||||
|
||||
int[] src;
|
||||
|
||||
@Setup
|
Loading…
x
Reference in New Issue
Block a user