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

Tobias Oberstein tobias.oberstein at tavendo.de
Wed Nov 11 06:55:07 MST 2015


> 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
>>
>> _______________________________________________
>> Twisted-Python mailing list
>> Twisted-Python at twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>





More information about the Twisted-Python mailing list