suramadu.tests.throughput
Class Shifting

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

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

This test exercises Java's arithmetic capabilities to measure throughput during computationally intensive operations with shift operations

PURPOSE: To measure the Java and RTSJ computational throughput with shift operations.

DESIGN: This class does shift 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. in the navigation of a spacecraft.

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 Mark Indictor

Nested Class Summary
static class Shifting.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
Shifting()
          constructor for test class Instantiates testProperties.
Shifting(Shifting.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

Shifting

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

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

Shifting

public Shifting(Shifting.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