Author: markt
Date: Wed Aug 14 14:08:26 2013
New Revision: 1513887
URL: http://svn.apache.org/r1513887
Log:
Add some timing information
Modified:
tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
Modified:
tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java?rev=1513887&r1=1513886&r2=1513887&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
(original)
+++ tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
Wed Aug 14 14:08:26 2013
@@ -291,7 +291,11 @@ public class TestNonBlockingAPI extends
int readSinceLastPause = 0;
int readTotal = 0;
while (read != -1 && readTotal < WRITE_SIZE / 2) {
+ long start = System.currentTimeMillis();
read = is.read(buffer);
+ long end = System.currentTimeMillis();
+ log.info("Client read [" + read + "] bytes in [" + (end - start) +
+ "] ms");
if (read > 0) {
result.append(buffer, 0, read);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]