Package org.jbox2d.testbed.perf
Class MathPerf
java.lang.Object
org.jbox2d.profile.BasicPerformanceTest
org.jbox2d.testbed.perf.MathPerf
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
static int
static int
(package private) java.lang.String[]
Fields inherited from class org.jbox2d.profile.BasicPerformanceTest
times
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjava.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INNER_ITERS
public static int INNER_ITERS -
OUTER_ITERS
public static int OUTER_ITERS -
tests
java.lang.String[] tests -
aStore
public float aStore
-
-
Constructor Details
-
MathPerf
public MathPerf()- Parameters:
argNumTests
-argIters
-
-
-
Method Details
-
runTest
public void runTest(int argNum) - Specified by:
runTest
in classBasicPerformanceTest
- See Also:
-
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:
-
main
public static void main(java.lang.String[] c)
-