Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New benchmark target for Netty. #501

Merged
merged 1 commit into from
Feb 1, 2014
Merged

New benchmark target for Netty. #501

merged 1 commit into from
Feb 1, 2014

Conversation

swankjesse
Copy link
Collaborator

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

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
@swankjesse
Copy link
Collaborator Author

Related: netty/netty#2176

}

pipeline.addLast("codec", new HttpClientCodec());
pipeline.addLast("inflater", new HttpContentDecompressor());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (benchmark.gzip) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be "realistic" I want the client to use the full pipeline even in scenarios where there's no decompression.

@codefromthecrypt
Copy link

LG

@normanmaurer
Copy link

@swankjesse well in netty 5.x (current master) you can pass an Executor into the NioEventLoopGroup . Maybe this helps ?

@swankjesse
Copy link
Collaborator Author

@normanmaurer good to know. Most of this change is necessary to support async.

swankjesse added a commit that referenced this pull request Feb 1, 2014
New benchmark target for Netty.
@swankjesse swankjesse merged commit b52e041 into master Feb 1, 2014
@normanmaurer
Copy link

@swankjesse np... feel free to ping me if you need more infos. Or ask @adriancole how to contact me he has all the details ;)

@swankjesse swankjesse deleted the jwilson_0201_netty branch February 14, 2014 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants