当前位置: 首页>>代码示例>>Java>>正文


Java RunnerException类代码示例

本文整理汇总了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();
}
 
开发者ID:marcelmay,项目名称:hadoop-hdfs-fsimage-exporter,代码行数:17,代码来源:BenchmarkIT.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:DeserJsoniter.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:SerThrift.java

示例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();
  }
}
 
开发者ID:Pr0methean,项目名称:BetterRandom,代码行数:14,代码来源:AbstractRandomBenchmark.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:DeserThrift.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:DeserJsoniter.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:DeserJsoniter.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:DeserDslJson.java

示例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();
}
 
开发者ID:mumudemo,项目名称:mumu-benchmark,代码行数:11,代码来源:JMHSample_11_Loops.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:DeserJsoniter.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:SerFastjson.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:SerPb.java

示例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();
}
 
开发者ID:mumudemo,项目名称:mumu-benchmark,代码行数:11,代码来源:JMHSample_21_ConsumeCPU.java

示例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();
    }
 
开发者ID:yohlulz,项目名称:MLE5109-Course-samples,代码行数:10,代码来源:Benchmarks.java

示例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",
    });
}
 
开发者ID:json-iterator,项目名称:java-benchmark,代码行数:10,代码来源:DeserFastjson.java


注:本文中的org.openjdk.jmh.runner.RunnerException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。