vec_math
Class Benchmark

java.lang.Object
  extended by vec_math.Benchmark

public class Benchmark
extends Object


Field Summary
(package private) static long elapsedTime
           
(package private) static long startTime
           
(package private) static long stopTime
           
 
Constructor Summary
Benchmark()
           
 
Method Summary
(package private) static long doubleArithmetic(double doubleMin, double doubleMax)
          Math benchmark using doubles.
(package private) static long floatArithmetic(float floatMin, float floatMax, int repeat)
          Math benchmark using floats.
(package private) static long intArithmetic(int intMax)
          Math benchmark using ints.
(package private) static long io(int ioMax)
          Write max lines to a file, then read max lines back from file.
(package private) static long longArithmetic(long longMin, long longMax)
          Math benchmark using longs.
static void main(String[] args)
           
(package private) static long shortArithmetic(short shortMin, short shortMax, int repeat)
          Math benchmark using shorts.
(package private) static long trig(double trigMax)
          Calculate sin, cos, tan, log, square root for all numbers up to a max.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

static long startTime

stopTime

static long stopTime

elapsedTime

static long elapsedTime
Constructor Detail

Benchmark

public Benchmark()
Method Detail

main

public static void main(String[] args)

intArithmetic

static long intArithmetic(int intMax)
Math benchmark using ints.


doubleArithmetic

static long doubleArithmetic(double doubleMin,
                             double doubleMax)
Math benchmark using doubles.


floatArithmetic

static long floatArithmetic(float floatMin,
                            float floatMax,
                            int repeat)
Math benchmark using floats.


shortArithmetic

static long shortArithmetic(short shortMin,
                            short shortMax,
                            int repeat)
Math benchmark using shorts.


longArithmetic

static long longArithmetic(long longMin,
                           long longMax)
Math benchmark using longs.


trig

static long trig(double trigMax)
Calculate sin, cos, tan, log, square root for all numbers up to a max.


io

static long io(int ioMax)
Write max lines to a file, then read max lines back from file.