This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ed39e0a422 Use constants. Update comments.
ed39e0a422 is described below
commit ed39e0a4226adfc850370d8bd5a3e0ce9e5af877
Author: Mark Thomas <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]