suramadu.tests.throughput
Class FloatingPoint

java.lang.Object
  extended bysuramadu.tests.throughput.FloatingPoint
All Implemented Interfaces:
java.lang.Runnable

public class FloatingPoint
extends java.lang.Object
implements java.lang.Runnable

This test exercises Java's arithmetic capabilities to measure throughput during computationally intensive operations with floating point numbers.

PURPOSE: To measure the Java and RTSJ computational throughput with floating point arithmatic.

DESIGN: This class does floating point operations - 30 operations in one call to doOps. The arguments to that function are simply to make sure that the compiler can't optimize away any operations. x3 must not be zero.

ASSUMPTIONS:

INPUTS:

Property Default Value Description
"iterations" "1000000" The number of test iterations to perform.
"printTimeDeltas" "No" Indicates whether or not to print all of the time deltas.

OUTPUTS:

EXAMPLES: *

ORIGINS:

Author:
Alex Murray

Nested Class Summary
static class FloatingPoint.TestProps
           
 
Field Summary
static int DEFAULT_ITERATIONS
          Default number of iterations
static MemoryType mt
          Memory type to use
static ThreadType tt
          Thread type to use.
 
Constructor Summary
FloatingPoint()
          constructor for test class Instantiates testProperties.
FloatingPoint(FloatingPoint.TestProps props)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ITERATIONS

public static final int DEFAULT_ITERATIONS
Default number of iterations

See Also:
Constant Field Values

tt

public static ThreadType tt
Thread type to use.


mt

public static MemoryType mt
Memory type to use

Constructor Detail

FloatingPoint

public FloatingPoint()
              throws java.lang.Exception
constructor for test class Instantiates testProperties.

Throws:
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception

FloatingPoint

public FloatingPoint(FloatingPoint.TestProps props)
              throws java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

run

public void run()
Specified by:
run in interface java.lang.Runnable