From 59420652c96956c7d9d4e501200ddbe91edc1c34 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Thu, 25 Apr 2024 03:31:01 +0200 Subject: TestMatrix4f02MulNOUI: Align w/ native jaulib --- make/scripts/tests.sh | 4 +-- .../test/junit/math/TestMatrix4f02MulNOUI.java | 36 +++++++++++++++++++--- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index 4447847cf..a8046492d 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -600,7 +600,7 @@ function testawtswt() { #testnoawt com.jogamp.opengl.test.junit.math.TestGluUnprojectFloatNOUI $* #testnoawt com.jogamp.opengl.test.junit.math.TestGluUnprojectDoubleNOUI $* #testnoawt com.jogamp.opengl.test.junit.math.TestMatrix4f01NOUI $* -#testnoawt com.jogamp.opengl.test.junit.math.TestMatrix4f02MulNOUI $* +testnoawt com.jogamp.opengl.test.junit.math.TestMatrix4f02MulNOUI $* #testnoawt com.jogamp.opengl.test.junit.math.TestMatrix4f03InversionNOUI $* #testnoawt com.jogamp.opengl.test.junit.math.TestMatrix4fMatrixMulNOUI $* #testnoawt com.jogamp.opengl.test.junit.math.TestMatrix4fProject01NOUI $* @@ -1011,7 +1011,7 @@ function testawtswt() { #testnoawt com.jogamp.opengl.demos.graph.GPURegionNewtDemo $* #testnoawt com.jogamp.opengl.demos.graph.ui.UIShapeClippingDemo00 $* ##testnoawt com.jogamp.opengl.demos.graph.ui.UIShapeClippingDemo01 $* -testnoawt com.jogamp.opengl.demos.graph.ui.FontView01 $* +#testnoawt com.jogamp.opengl.demos.graph.ui.FontView01 $* #testnoawt com.jogamp.opengl.demos.graph.ui.UIMediaGrid01 $* #testnoawt com.jogamp.opengl.demos.graph.ui.UISceneDemo03 $* #testnoawt com.jogamp.opengl.demos.graph.ui.UISceneDemo20 $* diff --git a/src/test/com/jogamp/opengl/test/junit/math/TestMatrix4f02MulNOUI.java b/src/test/com/jogamp/opengl/test/junit/math/TestMatrix4f02MulNOUI.java index a2cc5a3f3..090dcf6e7 100644 --- a/src/test/com/jogamp/opengl/test/junit/math/TestMatrix4f02MulNOUI.java +++ b/src/test/com/jogamp/opengl/test/junit/math/TestMatrix4f02MulNOUI.java @@ -106,7 +106,7 @@ public class TestMatrix4f02MulNOUI extends JunitTracer { final Matrix4fb res_n = new Matrix4fb(); final int warmups = 1000; - final int loops = 10*1000*1000; + final int loops = 25*1000*1000; long tI1 = 0; long tI2 = 0; long tI4a = 0; @@ -138,6 +138,9 @@ public class TestMatrix4f02MulNOUI extends JunitTracer { } tI2 = Platform.currentTimeMillis() - t_0; + // avoid optimizing out unused computation results by simply adding up determinat + double dr = 1; + // // Matrix4f // @@ -145,26 +148,36 @@ public class TestMatrix4f02MulNOUI extends JunitTracer { // warm-up for(int i=0; i 0 ); // warm-up for(int i=0; i 0 ); + System.err.printf("Checkmark %f%n", dr); System.err.printf("Summary loops %6d: I1 %6d ms total, %f us/mul%n", loops, tI1, tI1*1e3/loops); System.err.printf("Summary loops %6d: I2 %6d ms total, %f us/mul, I2 / I1 %f%%%n", loops, tI2, tI2*1e3/2.0/loops, (double)tI2/(double)tI1*100.0); System.err.printf("Summary loops %6d: I4a %6d ms total, %f us/mul, I4a / I2 %f%%, I4a / I4b %f%%%n", loops, tI4a, tI4a*1e3/2.0/loops, (double)tI4a/(double)tI2*100.0, (double)tI4a/(double)tI4b*100.0); -- cgit v1.2.3