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 floataStorestatic intINNER_ITERSstatic intOUTER_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.StringgetTestName(int argNum)static voidmain(java.lang.String[] c)voidrunAtan2Test(float argRandom)voidrunCeilTest(float argRandom)voidrunFastAtan2Test(float argRandom)voidrunFastCeilTest(float argRandom)voidrunFastFloorTest(float argRandom)voidrunFastMaxTest(float argRandom)voidrunFastPowTest(float argRandom)voidrunFloorTest(float argRandom)voidrunMaxTest(float argRandom)voidrunPowTest(float argRandom)voidrunSinLUTTest(float argRandom)voidrunSinTest(float argRandom)voidrunTest(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:
runTestin 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:
getTestNamein classBasicPerformanceTest- See Also:
org.jbox2d.testbed.perf.BasicPerformanceTest#getTestName(int)
-
main
public static void main(java.lang.String[] c)
-
-