You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by mb...@apache.org on 2022/02/19 23:44:52 UTC

[ant] 05/05: warm up before expected compiled to outperform noncompiled

This is an automated email from the ASF dual-hosted git repository.

mbenson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git

commit a63248be722bd788269ab628d72080cb5eb32225
Author: Matt Benson <mb...@apache.org>
AuthorDate: Sat Feb 19 17:44:18 2022 -0600

    warm up before expected compiled to outperform noncompiled
---
 .../org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java  | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
index 4ebf3d6..2a39535 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
@@ -162,6 +162,10 @@ public class ScriptDefTest {
         // skip execution since this compilation timing based test consistently fails starting Java 15 (where we use
         // Graal libraries for Javascript engine)
         Assume.assumeTrue("Skipping test execution since Java version is greater than Java 14", atMostJava14.eval());
+
+        // warm everything up:
+        buildRule.executeTarget("useNotCompiled");
+
         final long duration;
         {
             long start = System.nanoTime();