All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnt.Bench.Target Maven / Gradle / Ivy

Go to download

SciMark 2.0 is a Java benchmark for scientific and numerical computing. It measures several computational kernels and reports a composite score in approximate Mflops (Millions of floating point operations per second).

The newest version!
/*****************************************************************************
Interface jnt.Bench.Target
 *****************************************************************************/
package jnt.Bench;

/** 
Interface for a Benchmark Target.
Code to be measured by the Bench framework should provide a class implementing
this interface.  Place the code to be measured in the execute method.

@author Bruce R. Miller ([email protected])
@author Contribution of the National Institute of Standards and Technology,
@author not subject to copyright.
*/
public interface Target {
  /** The code to be measured is placed in this method.
    * @return null lets jnt.Bench.Bench handle the timings.
    * Otherwise, return an array containing the one or more measured values.
    * @see jnt.Bench.Bench [start|stop|reset]Timer methods for measurement tools.
    */    
  public double[] execute(Bench bench) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy