MINOR: Remove JMH main entrypoints

Fixes #8591
This commit is contained in:
Armin 2017-11-06 12:04:49 +01:00 committed by Armin Braun
parent e6b81e665b
commit 823feaf69a
4 changed files with 0 additions and 48 deletions

View file

@ -17,10 +17,6 @@ import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import org.openjdk.jmh.util.NullOutputStream;
@Warmup(iterations = 3, time = 500, timeUnit = TimeUnit.MILLISECONDS)
@ -67,12 +63,4 @@ public class EventSerializationBenchmark {
SINK.writeBytes(EVENT.toJson());
}
}
public static void main(final String... args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(EventSerializationBenchmark.class.getSimpleName())
.forks(2)
.build();
new Runner(opt).run();
}
}

View file

@ -15,10 +15,6 @@ import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.infra.Blackhole;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
@Warmup(iterations = 3, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 10, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@ -49,12 +45,4 @@ public class EventSprintfBenchmark {
blackhole.consume(EVENT.sprintf(i + "-%{[Foo]}"));
}
}
public static void main(final String... args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(EventSprintfBenchmark.class.getSimpleName())
.forks(2)
.build();
new Runner(opt).run();
}
}

View file

@ -34,10 +34,6 @@ import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.infra.Blackhole;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
@Warmup(iterations = 3, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 10, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@ -153,14 +149,6 @@ public class QueueRWBenchmark {
future.get();
}
public static void main(final String... args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(QueueRWBenchmark.class.getSimpleName())
.forks(2)
.build();
new Runner(opt).run();
}
private static Settings settings(final boolean persisted) {
final PageIOFactory pageIOFactory;
final CheckpointIOFactory checkpointIOFactory;

View file

@ -24,10 +24,6 @@ import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
@Warmup(iterations = 3, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 10, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@ -74,14 +70,6 @@ public class QueueWriteBenchmark {
}
}
public static void main(final String... args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(QueueWriteBenchmark.class.getSimpleName())
.forks(2)
.build();
new Runner(opt).run();
}
private static Settings settings() {
return SettingsImpl.fileSettingsBuilder(Files.createTempDir().getPath())
.capacity(256 * 1024 * 1024)