Tarek,
My response inline to your:
> You are not getting my point. What happens to weezhy or XXX framework
> when you are running it in a given stack, under heavy load ?
let me correct you, it is wheezy.web (not `weezhy`).
Tell me your definition of web framework heavy load. If you have one, we
can try benchmark it.
> There are many interactions that may impact the behavior of the stack -
> most of them are in the web server itself, but they can be things in the
> framework too, depending on the architectural choice.
The reason I choose uWSGI is due to minimal possible impact that application
server may cause. Since this component `equally influence` productivity
of each framework it can be to some degree ignored.
> And you will not know it with an hello world app. To put it more
> bluntly, your benchmark is going to join the big pile of hello worlds
> benchmarks that are completely meaningless.
Can not agree. This is just simple thing. Simple things should run
fast, no doubt. If you can provide a better idea as to which framework
calls to put into benchmark, I will be happy extend the benchmark case.
> If you want to prove that weezhy is faster than another py framework,
> because, I dunno, the number of function calls are smaller ? then you
> need to isolate this and
> do a different kind of bench.
>
> Have a look at
http://plope.com/pyroptimization , it's a good example
The numbers provided in that article are incorrect. They didn't match results
from the file they provide (result.txt in each framework dir) at the time
of writing.
I have used that idea to re-run things (isolated benchmark; report with
total time, total number of calls and number of distinct functions used).
See here:
https://bitbucket.org/akorn/helloworld/src/tip/benchmark.py
I will update original post a bit later (to let you comment on this).
> Same thing for the raw speed of your templating engine - isolation is
> required.
Improved bigtable benchmark report by adding total number of calls and
number distinct functions used:
https://bitbucket.org/akorn/wheezy.template/src/tip/demos/bigtable/bigtable.py
Original post not updated yet.
Sounds not so bad. It points to some specific workloads. Any attempt to prioritize
and/or practically implement them?
Thanks.
Andriy
----------------------------------------
> Date: Wed, 26 Sep 2012 11:41:26 +0200
> Subject: Re: Fastest web framework
>
> > ----------------------------------------
> >> Subject: Re: Fastest web framework
> >>
> >>>> 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
> >>>>>