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, &quot;Trustin Lee (이희승)&quot; <span dir="ltr">&lt;<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>&gt;</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&#39;d like to add your performance report to the project web site if you<br>
don&#39;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&#39;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>
&gt; Thought I would share the results of a silly http benchmark of netty<br>
&gt; against the competition.<br>
&gt; To keep thinks interesting I added the nginx http server to the mix to<br>
&gt; get an idea of how Java server compares to a highly optimized C<br>
&gt; server.<br>
&gt;<br>
&gt; Nginx has a module called  &quot;empty_gif&quot; that serves a 1x1 transparent<br>
&gt; gif directly from memory which is perfect for this purpose.<br>
&gt; I used the exact same gif for all the Java servers.<br>
&gt;<br>
&gt; Both the client and the server machines are quad cores running Linux<br>
&gt; 2.6.31 that are linked via a 1GB switch.<br>
&gt;<br>
&gt; I used ab as the testing tool with 4 parallel processes. The testing<br>
&gt; script is as follows:<br>
&gt;<br>
&gt; *******************************************************************<br>
&gt;<br>
&gt; #!/bin/bash<br>
&gt;<br>
&gt; set -e<br>
&gt; cd $(dirname $0)<br>
&gt; rm -fv *.log<br>
&gt;<br>
&gt; for i in $(seq 1 4); do<br>
&gt; ab -c500 -n1000000 -k -S -r -d http://&lt;host&gt;/bench &gt; $i.log &amp;<br>
&gt; done<br>
&gt;<br>
&gt; wait<br>
&gt;<br>
&gt; cat *.log | grep Requests | awk &#39;{ sum+= $4 } END {printf &quot;\n\n<br>
&gt; Average requests per second: %8.2f\n\n&quot;,sum}&#39;<br>
&gt; *******************************************************************<br>
&gt;<br>
&gt;<br>
&gt; As you can see it&#39;s not a very scientific method :-) ... anyway, each<br>
&gt; of the ab processes creates 500 connections and makes 1000000<br>
&gt; keep-alive requests.<br>
&gt; The average results across several runs were:<br>
&gt;<br>
&gt; mina (trunk) - 25K req/sec<br>
&gt; grizzly (1.9.18-i)- 55K  req/sec<br>
&gt; netyy (3.2-ALPHA3) - 80K req/sec<br>
&gt; nginx - 115K req/seq<br>
&gt;<br>
&gt;<br>
&gt; Impressive results for Netty I think.<br>
&gt; The code used is available here:<br>
&gt; &lt;<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>&gt;<br>
&gt;<br>
&gt; If there is something wrong with it please let me know.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Luis Neves<br>
&gt; _______________________________________________<br>
&gt; netty-users mailing list<br>
&gt; <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
&gt; <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>