Client side HTTP performance benchmarks

BIG FAT DISCLAIMER: These benchmarks are NOT based on any scientific methodology so the numbers are likely to be non-precise

Source code

HttpClient 3.x

HttpClient 4.x

HttpCore 4.x

JRE HTTP

Test platform

OS: Microsoft Windows Vista; CPU: Intel Core(tm)2 Quad Q6600@2.40GHz; RAM: 4 GB

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

Test settings

200,000 HTTP GETs, keep alive, content length: 689 bytes

Test results

Server Software:        Apache-Coyote/1.1

Document URI:           http://localhost:8080/examples/servlets/servlet/RequestInfoExample
Document Length:        689 bytes

Time taken for tests:   36.099 seconds
Complete requests:      200000
Failed requests:        0
Content transferred:    137800000 bytes
Requests per second:    5540.32 [#/sec] (mean)
Time per request:       0.180495 [ms] (mean)

Server Software:        Apache-Coyote/1.1

Document URI:           http://localhost:8080/examples/servlets/servlet/RequestInfoExample
Document Length:        689 bytes

Time taken for tests:   35.381 seconds
Complete requests:      200000
Failed requests:        0
Content transferred:    137800000 bytes
Requests per second:    5652.7515 [#/sec] (mean)
Time per request:       0.176905 [ms] (mean)

Server Software:        Apache-Coyote/1.1

Document URI:           http://localhost:8080/examples/servlets/servlet/RequestInfoExample
Document Length:        689 bytes

Time taken for tests:   26.505 seconds
Complete requests:      200000
Failed requests:        0
Content transferred:    137800000 bytes
Requests per second:    7545.746 [#/sec] (mean)
Time per request:       0.132525 [ms] (mean)

Server Software:        Apache-Coyote/1.1

Document URI:           http://localhost:8080/examples/servlets/servlet/RequestInfoExample
Document Length:        689 bytes

Time taken for tests:   32.792 seconds
Complete requests:      200000
Failed requests:        0
Content transferred:    137800000 bytes
Requests per second:    6099.0483 [#/sec] (mean)
Time per request:       0.16396 [ms] (mean)

HttpClient3vsHttpClient4vsHttpCore (last edited 2009-09-20 21:44:11 by localhost)