Package org.jbox2d.testbed.perf
Class MathPerf
- java.lang.Object
-
- org.jbox2d.profile.BasicPerformanceTest
-
- org.jbox2d.testbed.perf.MathPerf
-
public class MathPerf extends BasicPerformanceTest
-
-
Field Summary
Fields Modifier and Type Field Description float
aStore
static int
INNER_ITERS
static int
OUTER_ITERS
(package private) java.lang.String[]
tests
-
Fields inherited from class org.jbox2d.profile.BasicPerformanceTest
times
-
-
Constructor Summary
Constructors Constructor Description MathPerf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTestName(int argNum)
static void
main(java.lang.String[] c)
void
runAtan2Test(float argRandom)
void
runCeilTest(float argRandom)
void
runFastAtan2Test(float argRandom)
void
runFastCeilTest(float argRandom)
void
runFastFloorTest(float argRandom)
void
runFastMaxTest(float argRandom)
void
runFastPowTest(float argRandom)
void
runFloorTest(float argRandom)
void
runMaxTest(float argRandom)
void
runPowTest(float argRandom)
void
runSinLUTTest(float argRandom)
void
runSinTest(float argRandom)
void
runTest(int argNum)
-
Methods inherited from class org.jbox2d.profile.BasicPerformanceTest
getFrames, getTestTime, go, printf, println, printResults
-
-
-
-
Method Detail
-
runTest
public void runTest(int argNum)
- Specified by:
runTest
in classBasicPerformanceTest
- See Also:
org.jbox2d.testbed.perf.BasicPerformanceTest#runTest(int)
-
runSinTest
public void runSinTest(float argRandom)
-
runSinLUTTest
public void runSinLUTTest(float argRandom)
-
runPowTest
public void runPowTest(float argRandom)
-
runFastPowTest
public void runFastPowTest(float argRandom)
-
runMaxTest
public void runMaxTest(float argRandom)
-
runFastMaxTest
public void runFastMaxTest(float argRandom)
-
runFloorTest
public void runFloorTest(float argRandom)
-
runFastFloorTest
public void runFastFloorTest(float argRandom)
-
runAtan2Test
public void runAtan2Test(float argRandom)
-
runFastAtan2Test
public void runFastAtan2Test(float argRandom)
-
runCeilTest
public void runCeilTest(float argRandom)
-
runFastCeilTest
public void runFastCeilTest(float argRandom)
-
getTestName
public java.lang.String getTestName(int argNum)
- Specified by:
getTestName
in classBasicPerformanceTest
- See Also:
org.jbox2d.testbed.perf.BasicPerformanceTest#getTestName(int)
-
main
public static void main(java.lang.String[] c)
-
-