本文整理汇总了Java中org.openjdk.jmh.runner.RunnerException类的典型用法代码示例。如果您正苦于以下问题:Java RunnerException类的具体用法?Java RunnerException怎么用?Java RunnerException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RunnerException类属于org.openjdk.jmh.runner包,在下文中一共展示了RunnerException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: runMicroBenchMark
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
@Test
public void runMicroBenchMark() throws RunnerException {
Options opt = new OptionsBuilder()
.include(getClass().getName())
.warmupIterations(2)
.measurementIterations(10)
.mode(Mode.AverageTime)
.timeUnit(TimeUnit.MILLISECONDS)
.addProfiler(GCProfiler.class)
.jvmArgs("-server", "-XX:+UseG1GC", "-Xmx256m")
.shouldDoGC(true)
.forks(1)
.build();
new Runner(opt).run();
}
示例2: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_string_list.DeserJsoniter",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例3: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_10_double_fields.SerThrift",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例4: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
@SuppressWarnings("ObjectAllocationInLoop") public static void main(final String[] args)
throws RunnerException {
final ChainedOptionsBuilder options =
new OptionsBuilder().addProfiler(HotspotThreadProfiler.class)
.addProfiler(HotspotRuntimeProfiler.class).addProfiler(HotspotMemoryProfiler.class)
.addProfiler(GCProfiler.class).addProfiler(StackProfiler.class).shouldFailOnError(true)
.forks(1).resultFormat(ResultFormatType.CSV).detectJvmArgs();
for (int nThreads = 1; nThreads <= 2; nThreads++) {
new Runner(
options.threads(nThreads).output(String.format("%d-thread_bench_results.csv", nThreads))
.build()).run();
}
}
示例5: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_int_list.DeserThrift",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例6: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_10_int_fields.DeserJsoniter",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例7: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_5_string_fields.DeserJsoniter",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例8: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_10_double_fields.DeserDslJson",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例9: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(JMHSample_11_Loops.class.getSimpleName())
.warmupIterations(5)
.measurementIterations(5)
.forks(1)
.build();
new Runner(opt).run();
}
示例10: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_double.DeserJsoniter",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例11: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_double_array.SerFastjson",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例12: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_1_string_field.SerPb",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}
示例13: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(JMHSample_21_ConsumeCPU.class.getSimpleName())
.warmupIterations(1)
.measurementIterations(5)
.forks(1)
.build();
new Runner(opt).run();
}
示例14: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(Benchmarks.class.getSimpleName())
// .addProfiler(HotspotMemoryProfiler.class)
.forks(1)
.build();
new Runner(opt).run();
}
示例15: main
import org.openjdk.jmh.runner.RunnerException; //导入依赖的package包/类
public static void main(String[] args) throws IOException, RunnerException {
All.loadJMH();
Main.main(new String[]{
"with_int_list.DeserFastjson",
"-i", "5",
"-wi", "5",
"-f", "1",
});
}