|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.Benchmark
public class Benchmark
| 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 |
|---|
static long startTime
static long stopTime
static long elapsedTime
| Constructor Detail |
|---|
public Benchmark()
| Method Detail |
|---|
public static void main(String[] args)
static long intArithmetic(int intMax)
static long doubleArithmetic(double doubleMin,
double doubleMax)
static long floatArithmetic(float floatMin,
float floatMax,
int repeat)
static long shortArithmetic(short shortMin,
short shortMax,
int repeat)
static long longArithmetic(long longMin,
long longMax)
static long trig(double trigMax)
static long io(int ioMax)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||