<br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 6:54 AM, Jacek Furmankiewicz <span dir="ltr">&lt;<a href="mailto:jacek99@gmail.com">jacek99@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Great, thanks! It would be great if someone had done comparisons with <a href="https://github.com/smira/txZMQ" target="_blank">txZMQ</a> as well<div>but I guess I&#39;ll have to play with that myself.</div><div><br></div>
<div>Jacek</div><div>
<br><div class="gmail_quote"><div><div class="h5">On Thu, Mar 8, 2012 at 5:50 PM, Glyph Lefkowitz <span dir="ltr">&lt;<a href="mailto:glyph@twistedmatrix.com" target="_blank">glyph@twistedmatrix.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div style="word-wrap:break-word"><br><div><div><div><div>On Mar 8, 2012, at 2:45 PM, Jacek Furmankiewicz wrote:</div><br><blockquote type="cite"><div style="font-size:13px;font-family:arial,sans-serif">
I am trying to do some research on what is the most performant method for a Twisted server to speak to a client running in a separate process.</div></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">

<div style="font-size:13px;font-family:arial,sans-serif">The default solution in Twisted seems to be Perspective Broker, but then there is AMP and Foolscap as well.</div><div style="font-size:13px;font-family:arial,sans-serif">

<br></div><div style="font-size:13px;font-family:arial,sans-serif">
Has anyone ever done any benchmarks comparing those? I&#39;d like to have an idea as to which one is most likely to give me the best performance.</div></blockquote><div><br></div></div></div><div>AMP is fastest.  It&#39;s not really possible to <i>directly</i> compare, because PB and Foolscap respectively have more features, but compare here:</div>

<div><br></div><div><a href="http://speed.twistedmatrix.com/timeline/?exe=2%2C4&amp;base=none&amp;ben=pb&amp;env=d3&amp;revs=200" target="_blank">http://speed.twistedmatrix.com/timeline/?exe=2%2C4&amp;base=none&amp;ben=pb&amp;env=d3&amp;revs=200</a></div>

<div><br></div><div>and</div><div><br></div><div><a href="http://speed.twistedmatrix.com/timeline/?exe=2%2C4&amp;base=none&amp;ben=amp&amp;env=d3&amp;revs=200" target="_blank">http://speed.twistedmatrix.com/timeline/?exe=2%2C4&amp;base=none&amp;ben=amp&amp;env=d3&amp;revs=200</a></div>

<div><br></div><div>You&#39;re of course welcome to contribute optimizations to PB :).</div><span><font color="#888888"><div><br></div><div>-glyph</div><div><br></div></font></span></div></div><br></div></div>_______________________________________________<br>


Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com" target="_blank">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
<br></blockquote><div><br>Based on my experience, AMP is the fastest and then Pb, fullscap is the last one. I suggest using Pb first.. it is very nice and the performance isn&#39;t bad. (At my machine, It can handle 5K req/s, 2K req/s for foolscap)..<br>
<br>I am not an expert on foolscap and I believe there are rooms for improvement, moreover, foolscap provides more features in terms of security.<br><br>Regards<br><br>gelin yan<br></div></div><br>