Jesse Wilson
cc92c4cecc
[maven-release-plugin] prepare for next development iteration
2014-05-24 02:03:47 -04:00
Jesse Wilson
8dcc74d339
[maven-release-plugin] prepare release parent-2.0.0-RC1
2014-05-24 02:03:37 -04:00
Jake Wharton
53b9f84cb6
Remove Failure wrapper type.
2014-05-19 13:15:50 -07:00
Jesse Wilson
271cc7b632
First steps at making URLConnection a shim.
...
This extracts the URLConnection APIs to their own project. I still need to
go back and clean up some names in tests, add documentation, and move the
actual HttpURLConnection implementation details into this module.
2014-05-17 18:40:01 -04:00
Jesse Wilson
84312bd93f
Rename Response.Callback to Callback.
2014-05-10 11:20:07 -04:00
Jesse Wilson
9fcb67db2f
Rename Request.Body to RequestBody and Response.Body to ResponseBody.
...
Compelling alternative is ReadableBody and WritableBody, or BodySource and BodySink.
Which in theory permits reuse for serverside body makers. But I don't like those names
as much.
2014-05-10 08:26:44 -04:00
Adrian Cole
a5b7c3b2f3
Add ALPN support; Configure maven to use ALPN on OpenJDK 8.
2014-04-28 09:44:46 -07:00
Adrian Cole
58b71d915f
Merge pull request #780 from square/jwilson_0427_rename_execute
...
Rename execute to enqueue for async calls.
2014-04-27 10:30:23 -07:00
Jesse Wilson
b057ad2418
Rename execute to enqueue for async calls.
...
I prefer 'enqueue' because we might not actually run the job
for some time (due to dispatcher's limits).
2014-04-27 12:18:52 -04:00
Adrian Cole
022173a444
Don't suggest NPN will be used when it might be ALPN.
2014-04-27 09:12:37 -07:00
Adrian Cole
63d4dfaaa6
Merge Job into Call. CallTest = AsyncApiTest + SyncApiTest.
2014-04-25 11:13:39 -07:00
Adrian Cole
0b677ac70d
Introduce Call for async invocations.
2014-04-24 21:25:15 -07:00
Jake Wharton
996e9c95bd
Move HttpUrlConnection implementation to its own package.
2014-04-19 23:59:15 -07:00
Jesse Wilson
e9b5bf2a1d
Rename HTTP_11 to HTTP_1_1.
...
Otherwise it seems like HTTP_11 is version 11, greater than
HTTP_2.
2014-04-19 12:23:48 -04:00
Jesse Wilson
9d22181146
Delete Response.Body.ready() which didn't make much sense.
...
Also clean up some code to use more Okio.
2014-04-18 01:05:27 -04:00
Jesse Wilson
62a7ea2d20
Make Buffer the body type in MockResponse.
2014-04-17 20:19:16 -04:00
Adrian Cole
a3e9485b81
When a SPDY client, use a large flow-control window.
2014-02-19 20:26:41 -08:00
Adrian Cole and Jesse Wilson
fdee6f13a4
FindBugs sweep.
2014-02-05 17:18:30 +01:00
jwilson
4313b7af81
Promote the target backlog to a parameter.
2014-02-03 07:45:27 +01:00
Adrian Cole
a12d6a6fcc
Merge pull request #503 from normanmaurer/pooled
...
Use the pooled allocator for performance reasons
2014-02-01 16:59:41 -08:00
Adrian Cole
b2293c2660
Merge pull request #504 from square/jwilson_0201_caliper
...
Use Caliper for benchmarking.
2014-02-01 12:53:18 -08:00
jwilson
99841aecb4
Use Caliper for benchmarking.
2014-02-01 15:52:06 -05:00
Norman Maurer
18ef05d70d
Use the pooled allocator for performance reasons
2014-02-01 20:09:25 +01:00
Adrian Cole
66b2582379
Add instructions to execute the benchmark with correct JVM parameters.
2014-02-01 11:01:27 -08:00
Adrian Cole
08bc3c8808
Add MockWebServer.setNpnProtocols
2014-02-01 11:00:49 -08:00
jwilson
13ce4a09be
New benchmark target for Netty.
...
This required some reworking to the harness since Netty doesn't
want to be used with an ExecutorService.
NettyHttpClient [HTTP_11]
bodyByteCount=1048576 headerCount=20 concurrencyLevel=10
Requests per second: 597.1
OkHttp [HTTP_11]
bodyByteCount=1048576 headerCount=20 concurrencyLevel=10
Requests per second: 705.2
2014-02-01 12:21:03 -05:00
jwilson
7c21992db5
New benchmark targets for Apache HTTP Client and URLConnection.
...
OkHttp [HTTP_11]
bodyByteCount=1048576 headerCount=20 threadCount=10
Requests per second: 690.9
UrlConnection [HTTP_11]
bodyByteCount=1048576 headerCount=20 threadCount=10
Requests per second: 671.3
ApacheHttpClient [HTTP_11]
bodyByteCount=1048576 headerCount=20 threadCount=10
Requests per second: 317.4
2014-02-01 00:55:37 -05:00
jwilson
9bbdf3a924
Quick and dirty benchmark.
...
Sample output:
OkHttp [gzip, chunked, HTTP_11]
bodyByteCount=1048576 headerCount=20 threadCount=10
Requests per second: 121.0
Requests per second: 304.6
Requests per second: 379.1
Requests per second: 386.9
Requests per second: 369.2
Requests per second: 390.8
Requests per second: 368.8
Requests per second: 325.2
Requests per second: 409.4
Requests per second: 389.1
2014-01-31 22:24:54 -05:00