Re: [web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref
Toranado used to be much faster (non-blocking), but it's been stagnating lately because of the ever-increasing overhead. They've been alrted, and will hopefully work on the performance. Have you tried bjoern, btw? On Tue, Dec 28, 2010 at 7:44 AM, mdipierro mdipie...@cs.depaul.edu wrote: Anyway... I have now try a few of these servers, specifically for comet via HTML5 WebSocket. I am impressed by Tornado for both the ease of use and performance. http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ Massimo On Dec 28, 12:31 am, mdipierro mdipie...@cs.depaul.edu wrote: Look at the code. It is trivial to add it. On Dec 27, 8:00 pm, Bruno Rocha rochacbr...@gmail.com wrote: Just tried Cyclone -https://github.com/fiorix/cyclone-It is based on twisted then I thought that would run *cyclone* rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cyclone -p 8081 starting cyclone on 127.0.0.1:8081... Traceback (most recent call last): File anyserver.py, line 171, in module main() File anyserver.py, line 168, in main run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) File anyserver.py, line 129, in run getattr(Servers,servername)(application,(ip,int(port))) AttributeError: class Servers has no attribute 'cyclone' /*cyclone* -- Bruno Rochahttp://about.me/rochacbruno/bio -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref
no On Dec 28, 9:39 am, Branko Vukelić stu...@brankovukelic.com wrote: Toranado used to be much faster (non-blocking), but it's been stagnating lately because of the ever-increasing overhead. They've been alrted, and will hopefully work on the performance. Have you tried bjoern, btw? On Tue, Dec 28, 2010 at 7:44 AM, mdipierro mdipie...@cs.depaul.edu wrote: Anyway... I have now try a few of these servers, specifically for comet via HTML5 WebSocket. I am impressed by Tornado for both the ease of use and performance. http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ Massimo On Dec 28, 12:31 am, mdipierro mdipie...@cs.depaul.edu wrote: Look at the code. It is trivial to add it. On Dec 27, 8:00 pm, Bruno Rocha rochacbr...@gmail.com wrote: Just tried Cyclone -https://github.com/fiorix/cyclone-Itis based on twisted then I thought that would run *cyclone* rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cyclone -p 8081 starting cyclone on 127.0.0.1:8081... Traceback (most recent call last): File anyserver.py, line 171, in module main() File anyserver.py, line 168, in main run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) File anyserver.py, line 129, in run getattr(Servers,servername)(application,(ip,int(port))) AttributeError: class Servers has no attribute 'cyclone' /*cyclone* -- Bruno Rochahttp://about.me/rochacbruno/bio -- Branko Vukelic stu...@brankovukelic.comhttp://www.brankovukelic.com/
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref - TORNADO tried
I just tried tornado on windowsXP wirh Python 2.7. I just used apache ab and its 2-3x faster than Rocket on the same hardware. 'hello5' example show 60 req/sec for 'hello5' example. Usi ng roekt I'm getting cca. 21 req/sec. Can you share your results? Please try some of ewb2py standard example so we can compare. David -- Server Software:TornadoServer/1.1 Server Hostname:localhost Server Port:8081 Document Path: /examples/simple_examples/hello5 Document Length:179 bytes Concurrency Level: 150 Time taken for tests: 16.750 seconds Complete requests: 1000 Failed requests:0 Write errors: 0 Total transferred: 512000 bytes HTML transferred: 179000 bytes Requests per second:59.70 [#/sec] (mean) Time per request: 2512.500 [ms] (mean) Time per request: 16.750 [ms] (mean, across all concurrent requests) Transfer rate: 29.85 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect:02 27.7 0 547 Processing: 484 2445 533.5 23284828 Waiting: 484 2443 533.5 23284828 Total:484 2447 538.7 23284828 Percentage of the requests served within a certain time (ms) 50% 2328 66% 2469 75% 2500 80% 2609 90% 2781 95% 3953 98% 4125 99% 4219
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref - TORNADO tried
U just tested tornado using others 'example' pages and its much, much faster than rocket. It event doesnt generate failed requests comparing to rocket. Can tornado be better/faster solution then Apache wsgi? I mean some apache/nginx+reverse proxy tornado+web2py? https://github.com/fiorix/cyclone/wiki/benchmarks David
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref - TORNADO tried
That site you reference is meaningless. Neither Django or web.py are web servers but application frameworks. That is the same sort of flawed benchmarking that Tornado used to claim their web server was so much better when they first announced it. That is, they compared a hello world program written with a full stack web framework to a very basic hello world program written directly to low level web server API. The fairer comparison would have been basic WSGI hello world program to basic Tornado hello world program. Do that and you will find the results are very very different. Anyway, when will people learn that these simplistic benchmarks are meaningless. Your site would never run at 100% capacity and you would never want it to. The overheads are also never usually going to be in the hosting mechanism unless you really screw up its configuration, which admittedly many do. Instead the real bottlenecks are in your application and database usage. Ultimately these benchmark comparisons are little more than a pissing competition and you are just wasting your time. Use whatever solution you find fits your ability to manage it. If you find one solution too much for your level of knowledge then don't use it. Just because you cant get a solution to work doesn't mean there is something wrong with that solution. This though doesn't seem though to stop people rubbishing particular solutions even though reality is that the problem is their own incompetence and inability to get it running properly. Graham On Wednesday, December 29, 2010 7:28:20 AM UTC+11, David Marko wrote: U just tested tornado using others 'example' pages and its much, much faster than rocket. It event doesnt generate failed requests comparing to rocket. Can tornado be better/faster solution then Apache wsgi? I mean some apache/nginx+reverse proxy tornado+web2py? https://github.com/fiorix/cyclone/wiki/benchmarks David
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref
Look at the code. It is trivial to add it. On Dec 27, 8:00 pm, Bruno Rocha rochacbr...@gmail.com wrote: Just tried Cyclone -https://github.com/fiorix/cyclone- It is based on twisted then I thought that would run *cyclone* rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cyclone -p 8081 starting cyclone on 127.0.0.1:8081... Traceback (most recent call last): File anyserver.py, line 171, in module main() File anyserver.py, line 168, in main run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) File anyserver.py, line 129, in run getattr(Servers,servername)(application,(ip,int(port))) AttributeError: class Servers has no attribute 'cyclone' /*cyclone* -- Bruno Rochahttp://about.me/rochacbruno/bio
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref
Anyway... I have now try a few of these servers, specifically for comet via HTML5 WebSocket. I am impressed by Tornado for both the ease of use and performance. http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ Massimo On Dec 28, 12:31 am, mdipierro mdipie...@cs.depaul.edu wrote: Look at the code. It is trivial to add it. On Dec 27, 8:00 pm, Bruno Rocha rochacbr...@gmail.com wrote: Just tried Cyclone -https://github.com/fiorix/cyclone-It is based on twisted then I thought that would run *cyclone* rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cyclone -p 8081 starting cyclone on 127.0.0.1:8081... Traceback (most recent call last): File anyserver.py, line 171, in module main() File anyserver.py, line 168, in main run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) File anyserver.py, line 129, in run getattr(Servers,servername)(application,(ip,int(port))) AttributeError: class Servers has no attribute 'cyclone' /*cyclone* -- Bruno Rochahttp://about.me/rochacbruno/bio
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref
Bjoern: a screamingly fast Python WSGI server written in C https://github.com/jonashaag/bjoern
[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref
This is very interesting. I tried all the web servers I have installed cherrypy, twisted, eventlet, rocket. The logs say the request service speed is all about the same but twisted seemed slower from an unscientific response time feel of the app. I load map images using IMG tags in the part of the application I was testing for which timing is not listed in the log. The cherrypy server refuses to quit on a control-C, but I am using the Ubuntu standard 10.04 Synaptic package manager load so it might be behind in version. Ron