|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsuramadu.tests.throughput.IntegerOps
This test exercises Java's arithmetic capabilities to measure throughput during computationally intensive operations using integers.
PURPOSE: To measure the Java and RTSJ computational throughput with integer arithmatic.
DESIGN: This class does integer arithmetic 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. n3 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:
Nested Class Summary | |
static class |
IntegerOps.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 | |
IntegerOps()
constructor for test class Instantiates testProperties. |
|
IntegerOps(IntegerOps.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 |
public static final int DEFAULT_ITERATIONS
public static ThreadType tt
public static MemoryType mt
Constructor Detail |
public IntegerOps() throws java.lang.Exception
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception
public IntegerOps(IntegerOps.TestProps props) throws java.lang.Exception
Method Detail |
public static void main(java.lang.String[] args)
args
- the command line argumentspublic void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |