Hello,
I'm researching a bit about current options to create a web
application (like everyone else, it seems where
there are
real speed constraints. I was quite happy to see the
benchmark[1]
stating more than 500 connections per second, but I couldn't
reproduce that result in my own tests. Using the code below,
the command "ab2 -n 1000 http://localhost:8000/&q
uot; states around
132 requests/second, which is way behind.
[1] http://www
.cherrypy.org/wiki/CherryPySpeed
Is CherryPy slower since the benchmark was done?
The tested environment is:
* Processor: Pentium M 1.7 Ghz
* RAM: 512GB
* Linux 2.6.12 (Ubuntu)
* Load testing tool: ab2 from Apache2
* CherryPy version: 2.2.0beta (SVN Rev. 956)
The code used is:
import cherrypy
class Root:
cherrypy.expose
def index(self):
return "OK"
cherrypy.root = Root()
cherrypy.config.update({'global': {
'server.socket_port': 8000,
'server.log_to_screen': False,
'server.environment': 'production',
}})
cherrypy.server.start()
--
Gustavo Niemeyer
http://niemeyer.net
|