Update JMH to 0.3.2

This commit is contained in:
Michael Nitschinger 2014-02-12 21:40:13 +01:00 committed by Trustin Lee
parent b18c8fe688
commit 268988378f
2 changed files with 8 additions and 5 deletions

View File

@ -47,7 +47,7 @@
<dependency> <dependency>
<groupId>org.openjdk.jmh</groupId> <groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId> <artifactId>jmh-core</artifactId>
<version>0.2.1</version> <version>0.3.2</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -27,6 +27,7 @@ import org.openjdk.jmh.output.results.ResultFormatType;
import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.options.ChainedOptionsBuilder; import org.openjdk.jmh.runner.options.ChainedOptionsBuilder;
import org.openjdk.jmh.runner.options.OptionsBuilder; import org.openjdk.jmh.runner.options.OptionsBuilder;
import org.openjdk.jmh.runner.options.VerboseMode;
import java.io.File; import java.io.File;
@ -43,10 +44,12 @@ public class AbstractMicrobenchmark {
protected static final int DEFAULT_MEASURE_ITERATIONS = 1; protected static final int DEFAULT_MEASURE_ITERATIONS = 1;
protected static final int DEFAULT_FORKS = 2; protected static final int DEFAULT_FORKS = 2;
protected static final String JVM_ARGS = "-server -dsa -da -ea:io.netty... -Xms768m" + protected static final String[] JVM_ARGS = new String[] {
" -Xmx768m -XX:MaxDirectMemorySize=768m -XX:+AggressiveOpts -XX:+UseBiasedLocking" + "-server", "-dsa", "-da", "-ea:io.netty...", "-Xms768m", "-Xmx768m",
" -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+OptimizeStringConcat" + "-XX:MaxDirectMemorySize=768m", "-XX:+AggressiveOpts", "-XX:+UseBiasedLocking",
" -XX:+HeapDumpOnOutOfMemoryError -Dio.netty.noResourceLeakDetection"; "-XX:+UseFastAccessorMethods", "-XX:+UseStringCache", "-XX:+OptimizeStringConcat",
"-XX:+HeapDumpOnOutOfMemoryError", "-Dio.netty.noResourceLeakDetection"
};
static { static {
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.DISABLED); ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.DISABLED);