aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-09-23 09:07:47 (EDT)
committerThomas Becker2013-09-23 09:07:47 (EDT)
commit2ef4a4fb1c30287534f5c141285212c4701a506d (patch)
treeb02acd417c0c39b62b42dd3a78c518121c2a8748
parentbfb90523d67d62aa5e4da05b9ad8925591e9f84a (diff)
downloadorg.eclipse.jetty.project-2ef4a4fb1c30287534f5c141285212c4701a506d.zip
org.eclipse.jetty.project-2ef4a4fb1c30287534f5c141285212c4701a506d.tar.gz
org.eclipse.jetty.project-2ef4a4fb1c30287534f5c141285212c4701a506d.tar.bz2
fix SimpleHTTPBenchmarkTest
-rw-r--r--jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/SimpleHTTPBenchmarkTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/SimpleHTTPBenchmarkTest.java b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/SimpleHTTPBenchmarkTest.java
index df4c69d..3483cb6 100644
--- a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/SimpleHTTPBenchmarkTest.java
+++ b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/SimpleHTTPBenchmarkTest.java
@@ -35,6 +35,7 @@ import org.eclipse.jetty.spdy.api.Session;
import org.eclipse.jetty.spdy.api.Stream;
import org.eclipse.jetty.spdy.api.StreamFrameListener;
import org.eclipse.jetty.spdy.api.SynInfo;
+import org.eclipse.jetty.spdy.http.HTTPSPDYHeader;
import org.eclipse.jetty.util.Fields;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
@@ -54,7 +55,7 @@ import static org.junit.Assert.assertTrue;
public class SimpleHTTPBenchmarkTest extends AbstractHTTPSPDYTest
{
private static final Logger LOG = Log.getLogger(SimpleHTTPBenchmarkTest.class);
- private final int dataSize = 4096*100;
+ private final int dataSize = 4096 * 100;
private Session session;
private int requestCount = 100;
@@ -81,7 +82,7 @@ public class SimpleHTTPBenchmarkTest extends AbstractHTTPSPDYTest
assertThat(httpRequest.getHeader("host"), is("localhost:" + connector.getLocalPort()));
httpResponse.getOutputStream().write(data);
}
- }), null);
+ }, 0), null);
}
@Test
@@ -97,8 +98,8 @@ public class SimpleHTTPBenchmarkTest extends AbstractHTTPSPDYTest
long timeElapsed = System.nanoTime() - start;
LOG.info("Requests with {}b response took: {}ms", dataSize, timeElapsed / 1000 / 1000);
}
- long timeElapsedOverall = (System.nanoTime() - overallStart)/1000/1000;
- LOG.info("Time elapsed overall: {}ms avg: {}ms", timeElapsedOverall, timeElapsedOverall/iterations);
+ long timeElapsedOverall = (System.nanoTime() - overallStart) / 1000 / 1000;
+ LOG.info("Time elapsed overall: {}ms avg: {}ms", timeElapsedOverall, timeElapsedOverall / iterations);
}
private void sendGetRequest() throws Exception