Class Benchmark

java.lang.Object
es.ull.pcg.hpc.fancyjcl.Benchmark

public class Benchmark extends Object
Small utility to perform benchmarks.
  • Constructor Details

    • Benchmark

      public Benchmark()
  • Method Details

    • perform

      public static void perform(Benchmark.Process process, Benchmark.Process synchronization, int iterations) throws Exception
      Performs a benchmark of an asynchronous portion of code and a synchronization code. This allows for enqueuing iterations calls to the code to benchmark and perform a single synchronization call.
      Parameters:
      process - Code to benchmark.
      synchronization - Code to synchronize the `process`
      iterations - Number of iterations to perform
      Throws:
      Exception - Any failed execution will throw an exception