performance/src/main/java/org/justinnk/masonssa/evaluation/Evaluator.java
/**
   * Test the performance of different simulators on a grid-like contact graph.
   *
   * @throws RunnerException When jmh fails.
   */
Test the performance of different simulators on a grid-like contact graph.
@throws RunnerException When jmh fails.
Test the performance of different simulators on a grid - like contact graph . @throws RunnerException When jmh fails .
private static void gridPerformance(Method method) throws RunnerException {
    OptionsBuilder opt = new OptionsBuilder();
    switch (method) {
      case frm:
        opt.include(BenchmarkSirsGridFrm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/FirstReactionMethod_grid_jmh.csv");
        break;
      case ldm:
        opt.include(BenchmarkSirsGridLdm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/LogarithmicDirectMethod_grid_jmh.csv");
        break;
      case nrm:
        opt.include(BenchmarkSirsGridNrm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/NextReactionMethod_grid_jmh.csv");
        break;
      case odm:
        opt.include(BenchmarkSirsGridOdm.class.getSimpleName())
            .result("evaluation/performance_data/sirs/OptimizedDirectMethod_grid_jmh.csv");
        break;
      case vanilla:
        opt.include(BenchmarkSirsGridVanilla.class.getSimpleName())
            .result("evaluation/performance_data/sirs/Vanilla_grid_jmh.csv");
        break;
      default:
        break;
    }
    opt.measurementIterations(numIterations)
        .warmupIterations(warmupIterations)
        .warmupTime(TimeValue.seconds(warmupTime))
        .measurementTime(TimeValue.seconds(measurementTime))
        .forks(numForks)
        .jvmArgs("-Xms2g", "-Xmx7g")
        .resultFormat(ResultFormatType.CSV)
        .build();
    new Runner(opt).run();
  }
private static void gridPerformance ( Method method ) throws RunnerException { OptionsBuilder opt = new OptionsBuilder ( ) ; switch ( method ) { case frm : opt . include ( BenchmarkSirsGridFrm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/FirstReactionMethod_grid_jmh.csv" ) ; break ; case ldm : opt . include ( BenchmarkSirsGridLdm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/LogarithmicDirectMethod_grid_jmh.csv" ) ; break ; case nrm : opt . include ( BenchmarkSirsGridNrm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/NextReactionMethod_grid_jmh.csv" ) ; break ; case odm : opt . include ( BenchmarkSirsGridOdm . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/OptimizedDirectMethod_grid_jmh.csv" ) ; break ; case vanilla : opt . include ( BenchmarkSirsGridVanilla . class . getSimpleName ( ) ) . result ( "evaluation/performance_data/sirs/Vanilla_grid_jmh.csv" ) ; break ; default : break ; } opt . measurementIterations ( numIterations ) . warmupIterations ( warmupIterations ) . warmupTime ( TimeValue . seconds ( warmupTime ) ) . measurementTime ( TimeValue . seconds ( measurementTime ) ) . forks ( numForks ) . jvmArgs ( "-Xms2g" , "-Xmx7g" ) . resultFormat ( ResultFormatType . CSV ) . build ( ) ; new Runner ( opt ) . run ( ) ; }
Test the performance of different simulators on a grid-like contact graph.
Test the performance of different simulators on a grid - like contact graph .