performance/src/main/java/org/justinnk/masonssa/evaluation/Evaluator.java
/**
   * Test the time taken for initialisation of NRM, ODM and Vanilla. Also measure the first step of
   * FRM and LDM.
   *
   * @throws RunnerException When jmh fails.
   */
Test the time taken for initialisation of NRM, ODM and Vanilla. Also measure the first step of
FRM and LDM.

@throws RunnerException When jmh fails.
Test the time taken for initialisation of NRM ODM and Vanilla . Also measure the first step of FRM and LDM . @throws RunnerException When jmh fails .
private static void initPerformance(Method method) throws RunnerException {
    OptionsBuilder opt = new OptionsBuilder();
    switch (method) {
      case frm:
        opt.include(BenchmarkSirsInitFrm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/FirstReactionMethod_init_jmh.csv");
        break;
      case ldm:
        opt.include(BenchmarkSirsInitLdm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/LogarithmicDirectMethod_init_jmh.csv");
        break;
      case nrm:
        opt.include(BenchmarkSirsInitNrm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/NextReactionMethod_init_jmh.csv");
        break;
      case odm:
        opt.include(BenchmarkSirsInitOdm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/OptimizedDirectMethod_init_jmh.csv");
        break;
      case vanilla:
        opt.include(BenchmarkSirsInitVanilla.class.getSimpleName())
            .result("evaluation/performance_data/sirs/Vanilla_init_jmh.csv");
        break;
      default:
        break;
    }
    opt.measurementIterations(40)
        .warmupIterations(10)
        .forks(5)
        .jvmArgs("-Xms2g", "-Xmx7g")
        .resultFormat(ResultFormatType.CSV)
        .build();
    new Runner(opt).run();
  }
private static void initPerformance ( Method method ) throws RunnerException { OptionsBuilder opt = new OptionsBuilder ( ) ; switch ( method ) { case frm : opt . include ( BenchmarkSirsInitFrm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/FirstReactionMethod_init_jmh.csv" ) ; break ; case ldm : opt . include ( BenchmarkSirsInitLdm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/LogarithmicDirectMethod_init_jmh.csv" ) ; break ; case nrm : opt . include ( BenchmarkSirsInitNrm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/NextReactionMethod_init_jmh.csv" ) ; break ; case odm : opt . include ( BenchmarkSirsInitOdm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/OptimizedDirectMethod_init_jmh.csv" ) ; break ; case vanilla : opt . include ( BenchmarkSirsInitVanilla . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/Vanilla_init_jmh.csv" ) ; break ; default : break ; } opt . measurementIterations ( 40 ) . warmupIterations ( 10 ) . forks ( 5 ) . jvmArgs ( "-Xms2g" , "-Xmx7g" ) . resultFormat ( ResultFormatType . CSV ) . build ( ) ; new Runner ( opt ) . run ( ) ; }
Test the time taken for initialisation of NRM, ODM and Vanilla.
Test the time taken for initialisation of NRM ODM and Vanilla .