jira-importer opened a new issue, #1456:
URL: https://github.com/apache/httpcomponents-core/issues/1456

   **[Christian 
Müller](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=muellerc)** 
opened 
**[HTTPCORE-225](https://issues.apache.org/jira/browse/HTTPCORE-225?redirect=false)**
 and commented
   
   Hello Oleg,
   
   I would like to use the HttpBenchmark in the following way in my performance 
tests (using JUnit):
   
   HttpBenchmark benchmark = new HttpBenchmark("http://www.google.de/";);
   benchmark.setConcurrencyLevel(10);
   benchmark.setRequests(1000);
   benchmark.setContentType("text/xml; charset=UTF-8");
   benchmark.setContent(file://mySoapRequest.xml);
   // set some other none default values
   Stats stats = benchmark.execute();
   
   assertEquals(0, stats.getFailureCount());
   assertEquals(0, stats.getErrorCount());
   assertTrue(stats.getAvgTime(TimeUnit.MILLISECONDS) < 200);
   assertTrue(stats.getMaxTime(TimeUnit.MILLISECONDS) < 300);
   assertTrue(stats.getThroughput(TimeUnit.SECONDS) > 20);
   assertTrue(stats.getTimePerPercent(TimeUnit.MILLISECONDS, 80) < 220); // 
means 80% of all requests must be served in less than 220 ms
   // some other checks
   
   I think this could be also useful for other people and I would ask you, if 
you are interested that I share my further work with you?
   
   Regards,
   Christian
   
   
   ---
   
   **Affects:** 4.1-beta1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to