You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2010/04/22 22:17:50 UTC

[jira] Commented: (HTTPCORE-225) Improve httpcore-ab to make it possible to use it as performance test framework (in JUnit)

    [ https://issues.apache.org/jira/browse/HTTPCORE-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859990#action_12859990 ] 

Oleg Kalnichevski commented on HTTPCORE-225:
--------------------------------------------

Hi Christian

Performance testing is out of the project scope. This is the reason why httpcore-ab is not distributed in binary form. If you do not mind your code being available as source only, by all of means feel free to contribute it.

Alternatively, consider offering your code to HtmlUnit or similar project, which might be a better home for your code than HttpComponents.

http://htmlunit.sourceforge.net/

Oleg

> Improve httpcore-ab to make it possible to use it as performance test framework (in JUnit)
> ------------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-225
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-225
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>    Affects Versions: 4.1-beta1
>         Environment: All
>            Reporter: Christian Müller
>             Fix For: Future
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org