Yesterday i was running apache benchmark against a simple hello world
webpy app and the results touch the 1300 rps. Today, i can't get more
then 226 rps and with Mako 128.

With werkzeug and mako: 800 rps
With cherrypy: 700 rps

What i'm doing wrong ?

code:

# -*- coding: utf-8 -*-

import web
from web.contrib.template import render_mako

urls = ('/', 'hello')
app = web.application(urls, globals())


render = render_mako(
    directories=['templates'],
    input_encoding='utf-8',
    output_encoding='utf-8'
)

class hello(object):
    def GET(self):
        return render.hello(name='World')

if __name__ == '__main__':
    app.run()


template:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>
<html>
    <head>
        <title>Hello World Fun!</title>
    </head>
    <body>
        <h1>Hello ${name}</h1>
    </body>
</html>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to