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

markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 9a6e029c98 Use constants. Update comments.
9a6e029c98 is described below

commit 9a6e029c98b61731d280c3eb68f8cbf3e374dc6b
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Jan 31 15:27:19 2025 +0000

    Use constants. Update comments.
---
 test/org/apache/catalina/util/TestParameterMapPerformance.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/org/apache/catalina/util/TestParameterMapPerformance.java 
b/test/org/apache/catalina/util/TestParameterMapPerformance.java
index fe2ea9bf79..a89341a1a5 100644
--- a/test/org/apache/catalina/util/TestParameterMapPerformance.java
+++ b/test/org/apache/catalina/util/TestParameterMapPerformance.java
@@ -62,10 +62,10 @@ public class TestParameterMapPerformance {
             System.out.println("Done with standard in " + duration + "ms");
         }
         /*
-         * The CI systems tend to produce outliers that lead to false failures 
so skip the longest two runs.
+         * The CI systems tend to produce outliers that lead to false failures 
so skip the longest NUM_SKIP runs.
          */
         long standardTotalDuration =
-                standardDurations.stream().sorted().limit(NUM_TESTS - 
2).reduce(Long::sum).get().longValue();
+                standardDurations.stream().sorted().limit(NUM_TESTS - 
NUM_SKIP).reduce(Long::sum).get().longValue();
 
         List<Long> optimizedDurations = new ArrayList<>();
         for (int i = 0; i < NUM_TESTS; i++) {
@@ -79,7 +79,7 @@ public class TestParameterMapPerformance {
             System.out.println("Done with optimized in " + duration + "ms");
         }
         /*
-         * The CI systems tend to produce outliers that lead to false failures 
so skip the longest two runs.
+         * The CI systems tend to produce outliers that lead to false failures 
so skip the longest NUM_SKIP runs.
          */
         long optimizedTotalDuration =
                 optimizedDurations.stream().sorted().limit(NUM_TESTS - 
NUM_SKIP).reduce(Long::sum).get().longValue();


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to