Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: Fastest web framework

Reply
Thread Tools

RE: Fastest web framework

 
 
Andriy Kornatskyy
Guest
Posts: n/a
 
      09-26-2012

Tarek,

Thank you for the response back. Yes, your idea is pretty clear to me. The point is that higher workload you put in your application business logic, repository, backend, whatever... less you will see in final resultscomparison. This is obvious and we, as technical people, very well understand this (somebody even laugh).

The reality is that not all web applications do heavy CPU computations and/or experience IO delays (due to response from database running a query overtable that has no index, let say), some use caches, some split jobs to be run in background, some parallel them... I have to state that simple things must perform really fast to give more room for one that are not so.. That in turn makes your infrastructure more effective. Some prefer to adda box, some see that a likely to be a problem further it goes. The good thing - you have a choice, you are not locked, and as result you are responsible for the effectiveness of the system you build today and definitely next one.

Take care.

Andriy


----------------------------------------
> Date: Wed, 26 Sep 2012 11:08:19 +0200
> From:
> To:
> CC: python-
> Subject: Re: Fastest web framework
>
> On 9/25/12 3:21 PM, Andriy Kornatskyy wrote:
> > 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 differentway.

> That's not a good summary of what the function does. It does not just
> sleep. It does some I/O and CPU bound tasks. The sleep is here to
> simulate a blocking I/O call, besides the DB calls.
>
> The whole function tries to simulate a real application, unlike printing
> 'Hello World' - to put the stack under realistic conditions.
>
> The multiplication is cached by the processor, but will still push some
> CPU work on every call.
>
> >
> > Here is a live demo (a semi real world web application) that comes withwheezy.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/...-template.html
> >
> > Source code here:
> >
> > https://bitbucket.org/akorn/wheezy.w...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.

> Great, thanks for the update ! -- that's cool to bench the template
> engines, but this is still not what I had in mind.
>
> What I had in mind was to try each one of the framework with an
> application that does things, and see how the whole stack reacts on high
> load.
>
> But I guess we have different goals - wheezy seems really fast, congrats.
>
>
> Cheers
> Tarek
>
> > Andriy
> >
> >
> > ----------------------------------------
> >> Date: Mon, 24 Sep 2012 13:50:31 +0200
> >> From:
> >> To: python-
> >> 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/...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 witha
> >> real app.
> >>
> >> Have a look at
> >> https://github.com/mozilla-services/...e/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

> >

>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Fastest web framework Dwight Hutto Python 0 09-23-2012 08:16 PM
RE: Fastest web framework Andriy Kornatskyy Python 0 09-23-2012 07:48 PM
Re: Fastest web framework Dwight Hutto Python 0 09-23-2012 07:28 PM
Fastest web framework Andriy Kornatskyy Python 6 09-23-2012 06:41 PM
Fastest 5 mp Digital Camera ? Fastest 4 mp Digital Camera? photoguysept102004@yahoo.com Digital Photography 6 10-28-2004 11:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57