Hi Justin,<br><br>I found another benchmark test of Netty HTTP: <a href="http://timyang.net/programming/c-erlang-java-performance/">http://timyang.net/programming/c-erlang-java-performance/</a><br><br>Netty performs pretty well in the benchmark.<br>
<br><br><div class="gmail_quote">On Fri, Jan 29, 2010 at 11:27 AM, "Trustin Lee (이희승)" <span dir="ltr"><<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Luis,<br>
<br>
First off, thank you very much for spending significant amount of time<br>
for running performance tests. This is a great news for the community<br>
absolutely. :)<br>
<br>
I'd like to add your performance report to the project web site if you<br>
don't mind:<br>
<br>
<a href="http://jboss.org/netty/performance.html" target="_blank">http://jboss.org/netty/performance.html</a><br>
<br>
I think it's fine to publish it as long as it is easily reproduceable as<br>
written in your instruction and each test did not fail. Perhaps you<br>
could send me the full test log files then I could upload it together.<br>
<br>
Also, could you try to run the test with the latest build and publish<br>
the result again? I have done significant performance optimization<br>
which might yield better throughput in some situation. Get the latest<br>
build here:<br>
<br>
<a href="http://hudson.jboss.org/hudson/view/Netty/job/netty/2531/" target="_blank">http://hudson.jboss.org/hudson/view/Netty/job/netty/2531/</a><br>
<br>
Cheers,<br>
Trustin<br>
<div><div></div><div class="h5"><br>
Luis Neves wrote:<br>
> Thought I would share the results of a silly http benchmark of netty<br>
> against the competition.<br>
> To keep thinks interesting I added the nginx http server to the mix to<br>
> get an idea of how Java server compares to a highly optimized C<br>
> server.<br>
><br>
> Nginx has a module called "empty_gif" that serves a 1x1 transparent<br>
> gif directly from memory which is perfect for this purpose.<br>
> I used the exact same gif for all the Java servers.<br>
><br>
> Both the client and the server machines are quad cores running Linux<br>
> 2.6.31 that are linked via a 1GB switch.<br>
><br>
> I used ab as the testing tool with 4 parallel processes. The testing<br>
> script is as follows:<br>
><br>
> *******************************************************************<br>
><br>
> #!/bin/bash<br>
><br>
> set -e<br>
> cd $(dirname $0)<br>
> rm -fv *.log<br>
><br>
> for i in $(seq 1 4); do<br>
> ab -c500 -n1000000 -k -S -r -d http://<host>/bench > $i.log &<br>
> done<br>
><br>
> wait<br>
><br>
> cat *.log | grep Requests | awk '{ sum+= $4 } END {printf "\n\n<br>
> Average requests per second: %8.2f\n\n",sum}'<br>
> *******************************************************************<br>
><br>
><br>
> As you can see it's not a very scientific method :-) ... anyway, each<br>
> of the ab processes creates 500 connections and makes 1000000<br>
> keep-alive requests.<br>
> The average results across several runs were:<br>
><br>
> mina (trunk) - 25K req/sec<br>
> grizzly (1.9.18-i)- 55K req/sec<br>
> netyy (3.2-ALPHA3) - 80K req/sec<br>
> nginx - 115K req/seq<br>
><br>
><br>
> Impressive results for Netty I think.<br>
> The code used is available here:<br>
> <<a href="http://dl.dropbox.com/u/279023/netty/http_test.tar.gz" target="_blank">http://dl.dropbox.com/u/279023/netty/http_test.tar.gz</a>><br>
><br>
> If there is something wrong with it please let me know.<br>
><br>
><br>
> --<br>
> Luis Neves<br>
> _______________________________________________<br>
> netty-users mailing list<br>
> <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
<br>
</div></div><font color="#888888">--<br>
what we call human nature in actuality is human habit<br>
<a href="http://gleamynode.net/" target="_blank">http://gleamynode.net/</a><br>
<br>
<br>
</font><br>_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br></blockquote></div><br>