[Twisted-Python] Twisted Web at 630k reqs/sec

Gelin Yan dynamicgl at gmail.com
Wed Nov 11 21:36:52 MST 2015


On Wed, Nov 11, 2015 at 9:55 PM, Tobias Oberstein <
tobias.oberstein at tavendo.de> wrote:

> Those are some nice numbers, to be sure!  Twisted really benefits from
>> running in a pypy vm.  I have read that pypy still doesn’t optimize
>> old-style classes as efficiently as new-style classes; I wonder if there
>> would be any meaningful change in the metrics if resource.Resource was a
>> new-style class instead of an old-style class.
>>
>
> Yep, using new style classes is indeed recommended for performance on
> PyPy. We are using new style classes throughout Autobahn and Crossbar.io,
> but I haven't measured effects.
>
> Am I correct in stating that SO_REUSEPORT only produces the desired
>> balancing of requests between twisted processes on Linux?
>>
>
> You need Linux kernel 3.9+. DragonFly BSD also claims support, but I
> haven't tried. We should also be able to make Windows work, after some more
> things have landed for the Twisted IOCP reactor.
>
> Cheers,
> /Tobias
>
>
>
>> Thanks,
>>
>> L. Daniel Burr
>>
>> Cheers,
>>> /Tobias
>>>
>>>

 Hi Tobias

    Have you tried to test crossbar on windows? I heard that stdio performs
very bad on windows. I noticed crossbar use pipe to transfer data between
process.

Regards

gelin yan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20151112/6e8cacc0/attachment-0002.html>


More information about the Twisted-Python mailing list