[Repoze-dev] Re: Benchmarking WSGI servers (was Re: Invitation to a dance)

Tres Seaver tseaver at agendaless.com
Fri Sep 28 21:14:27 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tres Seaver wrote:

>> With this Paste configuration:
> 
>> [DEFAULT]
>> debug = True
> 
>> [app:test]
>> use = egg:Paste#test
> 
>> [server:paste]
>> use = egg:Paste#http
>> host = 127.0.0.1
>> port = 8080
> 
>> [server:wsgiutils]
>> use = egg:PasteScript#wsgiutils
>> host = 127.0.0.1
>> port = 8080
> 
>> [server:zserver]
>> use = egg:repoze.zope2#zserver
>> host = 127.0.0.1
>> port = 8080
> 
> I added:
> 
>   [server:cherrypy]
>   use = egg:Paste#cherrypy
>   host = 127.0.0.1
>   port = 8080
> 
> On my box, I get the following:
> 
>   Twisted.Web2   ~700 req/s
>   wsgiutils      ~900 req/s
>   paste         ~1500 req/s
>   zope.server   ~1500 req/s
>   cherrypy      ~2200 req/s
> 
> I ran the twisted server with the attached server descriptor:
> 
>   $ bin/twistd -ny bin/twisty.py
> 
> The others I ran under paster:
> 
>   $ bin/paster --server-name=<name> --app-name test etc/zope2.ini
> 
> The endpoint in each case is egg:Paste#test (I wanted 'pony', but Chris
> talked me out of it).
> 
> Running against the Zope quickstart page (editing the name in
> 'twisty.py', switching --app-name to 'zope'):
> 
>   Twisted.Web2   ~160 req/s
>   wsgiutils      ~165 req/s
>   paste          ~220 req/s
>   zope.server    ~225 req/s
>   cherrypy       ~240 req/s
> 
> Tests run against all settings via:
> 
>   $ ab -n 1000 -c 10 http://localhost:8080/

Crap, forgot the 'twisty.py'.

- --
===================================================================
Tres Seaver          +1 540-429-0999         tseaver at agendaless.com
Agendaless Consulting                         http://agendaless.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG/W6zFXKVXuSL+CMRAol/AJ90i6RhQU+4ZXLw2SddDN5lr1KKJwCfZ8g/
U9lQLoW2KZnh4hmllViPwug=
=z5pJ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twisty.py
Type: application/x-httpd-cgi
Size: 595 bytes
Desc: not available
Url : http://lists.repoze.org/pipermail/repoze-dev/attachments/20070928/2545c73a/attachment-0001.bin 


More information about the Repoze-dev mailing list