|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.Profiler
public class Profiler
A small class with static methods that allow the bench-marking of different floating point operations. It returns the estimated time for a thousand of floating point operations.
| Field Summary | |
|---|---|
static int |
LOOP1E3
Default number of 1 thousand loops. |
static int |
LOOP1E6
Default number of 1 million loops. |
| Constructor Summary | |
|---|---|
Profiler()
|
|
| Method Summary | |
|---|---|
static long |
atangensProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
atangensProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
atrigonometricProfile()
Does a certain number of calls to the trigonometric sin/cos function and returns the milliseconds of execution time. |
static long |
atrigonometricProfile(int loop)
Does a certain number of calls to the trigonometric sin/cos function and returns the milliseconds of execution time. |
static long |
divProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
divProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
expProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
expProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
logProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
logProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static void |
main(String[] arg)
Test all profiles on the current machine. |
static long |
powerProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
powerProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
randomProfile()
Does a certain number of calls to the random number generator and returns the milliseconds of execution time. |
static long |
randomProfile(int loop)
Does a certain number of calls to the random number generator and returns the milliseconds of execution time. |
static long |
rootProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
rootProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
sumProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
sumProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
tangensProfile()
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
tangensProfile(int loop)
Does a certain number of calls to the trigonometric tan function and returns the milliseconds of execution time. |
static long |
trigonometricProfile()
Does a certain number of calls to the trigonometric sin/cos function and returns the milliseconds of execution time. |
static long |
trigonometricProfile(int l)
Does a certain number of calls to the trigonometric sin/cos function and returns the milliseconds of execution time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LOOP1E6
public static final int LOOP1E3
| Constructor Detail |
|---|
public Profiler()
| Method Detail |
|---|
public static final long randomProfile()
public static final long randomProfile(int loop)
public static final long trigonometricProfile()
public static final long trigonometricProfile(int l)
public static final long atrigonometricProfile()
public static final long atrigonometricProfile(int loop)
public static final long sumProfile()
public static final long sumProfile(int loop)
public static final long divProfile()
public static final long divProfile(int loop)
public static final long tangensProfile()
public static final long tangensProfile(int loop)
public static final long atangensProfile()
public static final long atangensProfile(int loop)
public static final long rootProfile()
public static final long rootProfile(int loop)
public static final long logProfile()
public static final long logProfile(int loop)
public static final long expProfile()
public static final long expProfile(int loop)
public static final long powerProfile()
public static final long powerProfile(int loop)
public static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||