Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30077 > unrolled thread

RE: Fastest web framework

Started byAndriy Kornatskyy <andriy.kornatskyy@live.com>
First post2012-09-25 16:21 +0300
Last post2012-09-25 16:21 +0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: Fastest web framework Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-09-25 16:21 +0300

#30077 — RE: Fastest web framework

FromAndriy Kornatskyy <andriy.kornatskyy@live.com>
Date2012-09-25 16:21 +0300
SubjectRE: Fastest web framework
Message-ID<mailman.1332.1348579337.27098.python-list@python.org>
Tarek,

With all respect, running benchmark on something that has sleeps, etc is pretty far from real world use case. So I went a little bit different way.

Here is a live demo (a semi real world web application) that comes with wheezy.web framework as a template:

http://wheezy.pythonanywhere.com/

I have implemented it in a way that it uses one web framework (wheezy.web) and various template engines (jinja2, mako, tenjin, wheezy.template and wheezy.template with preprocessor)... Please see the following post under `Real World Example` section:

http://mindref.blogspot.com/2012/07/python-fastest-template.html

Source code here:

https://bitbucket.org/akorn/wheezy.web/src/tip/demos/template

The real world example shows the difference between template engines implementing the same things. The same applies to web frameworks (more or less depending on your choice).

Thanks.

Andriy


----------------------------------------
> Date: Mon, 24 Sep 2012 13:50:31 +0200
> From: tarek@ziade.org
> To: python-list@python.org
> Subject: Re: Fastest web framework
>
> On 9/23/12 11:19 AM, Andriy Kornatskyy wrote:
> > I have run recently a benchmark of a trivial 'hello world' application for various python web frameworks (bottle, django, flask, pyramid, web.py, wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find it interesting:
> >
> > http://mindref.blogspot.com/2012/09/python-fastest-web-framework.html
> >
> > Comments or suggestions are welcome.
> >
> > Thanks.
> >
> > Andriy Kornatskyy
> >
> I would try this with a web app that does more than 'Hello World'
>
> You may argue that you're just trying the server stack, but that's not
> realistic because you don't really measure how the server behaves with a
> real app.
>
> Have a look at
> https://github.com/mozilla-services/chaussette/blob/master/chaussette/util.py#L188
>
> (setup_bench and teardow_bench have to be run on startup and tear down
> of the server)
>
> I would be curious to see how things goes then
>
> Cheers
> Tarek
> --
> http://mail.python.org/mailman/listinfo/python-list
 		 	   		  

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web