org.sunflow

Class Benchmark

Implemented Interfaces:
BenchmarkTest, Display, UserInterface

public class Benchmark
extends java.lang.Object
implements BenchmarkTest, UserInterface, Display

Constructor Summary

Benchmark()
Benchmark(int resolution, boolean showOutput, boolean showBenchmarkOutput, boolean saveOutput)
Benchmark(int resolution, boolean showOutput, boolean showBenchmarkOutput, boolean saveOutput, int threads)

Method Summary

void
execute()
void
imageBegin(int w, int h, int bucketSize)
void
imageEnd()
void
imageFill(int x, int y, int w, int h, Color c)
void
imagePrepare(int x, int y, int w, int h, int id)
void
imageUpdate(int x, int y, int w, int h, Color[] data)
void
kernelBegin()
void
kernelEnd()
void
kernelMain()
static void
main(String[] args)
void
print(UI.Module m, UI.PrintLevel level, String s)
void
taskStart(String s, int min, int max)
void
taskStop()
void
taskUpdate(int current)

Constructor Details

Benchmark

public Benchmark()

Benchmark

public Benchmark(int resolution,
                 boolean showOutput,
                 boolean showBenchmarkOutput,
                 boolean saveOutput)

Benchmark

public Benchmark(int resolution,
                 boolean showOutput,
                 boolean showBenchmarkOutput,
                 boolean saveOutput,
                 int threads)

Method Details

execute

public void execute()

imageBegin

public void imageBegin(int w,
                       int h,
                       int bucketSize)
Specified by:
imageBegin in interface Display

imageEnd

public void imageEnd()
Specified by:
imageEnd in interface Display

imageFill

public void imageFill(int x,
                      int y,
                      int w,
                      int h,
                      Color c)
Specified by:
imageFill in interface Display

imagePrepare

public void imagePrepare(int x,
                         int y,
                         int w,
                         int h,
                         int id)
Specified by:
imagePrepare in interface Display

imageUpdate

public void imageUpdate(int x,
                        int y,
                        int w,
                        int h,
                        Color[] data)
Specified by:
imageUpdate in interface Display

kernelBegin

public void kernelBegin()
Specified by:
kernelBegin in interface BenchmarkTest

kernelEnd

public void kernelEnd()
Specified by:
kernelEnd in interface BenchmarkTest

kernelMain

public void kernelMain()
Specified by:
kernelMain in interface BenchmarkTest

main

public static void main(String[] args)

print

public void print(UI.Module m,
                  UI.PrintLevel level,
                  String s)
Specified by:
print in interface UserInterface

taskStart

public void taskStart(String s,
                      int min,
                      int max)
Specified by:
taskStart in interface UserInterface

taskStop

public void taskStop()
Specified by:
taskStop in interface UserInterface

taskUpdate

public void taskUpdate(int current)
Specified by:
taskUpdate in interface UserInterface