This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new da7d469e59 Use constants. Update comments. da7d469e59 is described below commit da7d469e591f57b8ad7b1605b3b636734f0df837 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