anand, can you repeat this?
On Jan 8, 2009 12:47 PM, "slav0nic" <[email protected]> wrote:
why web.py 0.31 is slowly for hellow world app?
v0.31
import web
urls = (
'/', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self):
return 'Hello, world!'
if __name__ == "__main__":
app.run()
v0.23
import web
urls = (
'/', 'hello'
)
class hello:
def GET(self, name):
return 'Hello, world!'
if __name__ == "__main__":
web.run(urls, globals())
-------------------------------
python test_webpy.py 8000 2> /dev/null
/usr/sbin/ab -c 100 -n 1000 http://localhost:8000/
result :
v0.31 Requests per second: 66.84 [#/sec] (mean)
v0.23 Requests per second: 640.85 [#/sec] (mean)
WTF?
--~--~---------~--~----~------------~-------~--~----~ You received this
message because you are sub...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---