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

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


The following commit(s) were added to refs/heads/main by this push:
     new 880d53e  Update comment after testing with more recent Java version
880d53e is described below

commit 880d53ebed6ecf30679b3fdb18e4db91645e61d4
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Aug 21 20:58:50 2021 +0100

    Update comment after testing with more recent Java version
---
 test/org/apache/catalina/connector/TestResponsePerformance.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/catalina/connector/TestResponsePerformance.java 
b/test/org/apache/catalina/connector/TestResponsePerformance.java
index eb1236e..044fcfd 100644
--- a/test/org/apache/catalina/connector/TestResponsePerformance.java
+++ b/test/org/apache/catalina/connector/TestResponsePerformance.java
@@ -26,7 +26,7 @@ import org.apache.tomcat.unittest.TesterRequest;
 
 public class TestResponsePerformance extends LoggingBaseTest {
 
-    private static final int ITERATIONS = 100000;
+    private static final int ITERATIONS = 1000000;
 
     @Test
     public void testToAbsolutePerformance() throws Exception {
@@ -38,9 +38,8 @@ public class TestResponsePerformance extends LoggingBaseTest {
         doHomebrew(resp);
         doUri();
 
-        // Note: Java 9 on my OSX laptop consistently shows doUri() is faster
-        //       than doHomebrew(). Worth a closer look for Tomcat 10 on the
-        //       assumption it will require java 9
+        // Note: With Java 11 the 'homebrew' approach is consistently 3 to 4
+        //       times faster on both MacOS and Linux
 
         // To allow for timing differences between runs, a "best of n" approach
         // is taken for this test

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

Reply via email to