hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-225) Improve httpcore-ab to make it possible to use it as performance test framework (in JUnit)
Date Thu, 22 Apr 2010 20:17:50 GMT

    [ 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


Mime
View raw message