Skip to content

Instantly share code, notes, and snippets.

@jfarcand
Created November 2, 2010 17:36
Show Gist options
  • Save jfarcand/659981 to your computer and use it in GitHub Desktop.
Save jfarcand/659981 to your computer and use it in GitHub Desktop.
Async Http Client (AbstractBenchmark benchmark = new AhcBenchmark(5, 50, 50, TARGET_URL));
BenchmarkResult{requestsPerSecond=2937.72, threads=5, batches=50, targetRequests=12500, successfulRequests=12500, failedRequests=0, averageRequestTime=3.40ms, averageBatchTime=8.50ms, totalBenchmarkTime=4.25ms}
Apache Http Client (AbstractBenchmark benchmark = new ApacheBenchmark(5, 50, 50, TARGET_URL);)
BenchmarkResult{requestsPerSecond=2915.94, threads=5, batches=50, targetRequests=12500, successfulRequests=12500, failedRequests=0, averageRequestTime=3.42ms, averageBatchTime=8.57ms, totalBenchmarkTime=4.28ms}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment