appl.util.benchmark
Class SimpleBenchmark

java.lang.Object
  extended by appl.util.benchmark.SimpleBenchmark
All Implemented Interfaces:
Benchmark

public class SimpleBenchmark
extends Object
implements Benchmark

The algorithm simply iterates over a grid. The with and height can be specified by the XuluConfig Property Benchmark.SimpleBench.gridwidth. For each cell the average over a neighborhood region is calculated. The neighborhoodRange can be specified by Benchmark.SimpleBench.neighborhood. If the algorithm reaches the end of the raster it starts again at (0,0). The rating depends on the number of cells visited in the time (ms) specified by Benchmark.SimpleBench.time. The number of cells is divided by Benchmark.SimpleBench.calibrator and then given back as rating.

Author:
Dominik Appl

Constructor Summary
SimpleBenchmark()
           
 
Method Summary
 int bench()
          runs the Benchmark
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBenchmark

public SimpleBenchmark()
Method Detail

bench

public int bench()
Description copied from interface: Benchmark
runs the Benchmark

Specified by:
bench in interface Benchmark
Returns:
a rating. The rating should be a positive number and linear in the computing power

main

public static void main(String[] args)