Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'case.': 0.05; 'frameworks': 0.05; 'startup': 0.05; 'things.': 0.05; 'url:bitbucket': 0.05; 'calls.': 0.07; 'tarek': 0.07; 'welcome.': 0.07; 'python': 0.09; 'blocking': 0.09; 'cached': 0.09; 'django,': 0.09; 'sep': 0.09; 'stack,': 0.09; 'url:github': 0.09; 'cc:addr :python-list': 0.10; 'template': 0.11; 'applies': 0.15; 'stack': 0.15; "'hello": 0.16; '(more': 0.16; '11:19': 0.16; 'background,': 0.16; 'choice).': 0.16; 'comparison.': 0.16; 'interesting:': 0.16; 'locked,': 0.16; 'processor,': 0.16; 'simulate': 0.16; 'tarek,': 0.16; 'them...': 0.16; 'mon,': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'implementing': 0.17; 'tries': 0.17; '>>>': 0.18; 'app': 0.19; '+0200': 0.20; 'skip:- 40': 0.21; 'trying': 0.21; 'bit': 0.21; 'thanks.': 0.21; 'people,': 0.21; 'back.': 0.22; 'we,': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'split': 0.23; 'seems': 0.23; 'cheers': 0.24; 'cc:no real name:2**0': 0.24; 'idea': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'guess': 0.27; 'implemented': 0.27; 'besides': 0.27; 'mind.': 0.27; 'went': 0.28; 'run': 0.28; 'post': 0.28; 'app.': 0.29; 'argue': 0.29; 'cpu': 0.29; 'i/o': 0.29; 'index,': 0.29; 'measure': 0.29; 'sleep': 0.29; 'things,': 0.29; 'date:': 0.29; 'url:mailman': 0.29; 'summary': 0.29; 'source': 0.29; 'call.': 0.30; 'framework': 0.30; 'hosted': 0.30; 'push': 0.30; 'query': 0.30; 'unlike': 0.30; 'url:2012': 0.30; 'function': 0.30; 'code': 0.31; 'point': 0.31; 'url:python': 0.32; 'room': 0.32; 'running': 0.32; 'url:listinfo': 0.32; 'comments': 0.33; 'goes': 0.33; 'curious': 0.33; 'from:addr:live.com': 0.33; 'problem': 0.33; 'likely': 0.33; 'thanks': 0.34; 'server': 0.35; 'clear': 0.35; 'conditions.': 0.35; 'fastest': 0.35; 'pm,': 0.35; 'table': 0.35; 'something': 0.35; 'next': 0.35; 'add': 0.36; 'really': 0.36; 'subject:': 0.36; 'but': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'thank': 0.36; 'turn': 0.36; 'does': 0.37; 'uses': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'perform': 0.38; 'from:': 0.38; 'some': 0.38; 'things': 0.38; 'here:': 0.62; 'email name:python-list': 0.62; 'engines': 0.62; 'between': 0.63; 'different': 0.63; 'world': 0.63; 'more': 0.63; 'url:blogspot': 0.64; 'here': 0.65; 'jobs': 0.65; 'results': 0.65; 'tasks.': 0.65; 'today': 0.67; 'box,': 0.69; 'business': 0.70; 'email addr:live.com': 0.71; 'obvious': 0.71; 'goals': 0.78; 'heavy': 0.83; 'bench': 0.84; 'benchmark': 0.84; 'fast,': 0.84; 'semi': 0.84; 'server)': 0.84; 'to:addr:tarek': 0.84; 'url:master': 0.84; 'url:template': 0.91; 'engines,': 0.93; 'realistic': 0.93; 'charset:windows-1251': 0.97 X-Originating-IP: [194.44.213.194] From: Andriy Kornatskyy To: Subject: RE: Fastest web framework Date: Wed, 26 Sep 2012 12:26:50 +0300 Importance: Normal In-Reply-To: <5062C603.90905@ziade.org> References: , <50604907.6060405@ziade.org> , <5062C603.90905@ziade.org> Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 26 Sep 2012 09:26:51.0062 (UTC) FILETIME=[0F467560:01CD9BC9] Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 133 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348651613 news.xs4all.nl 6944 [2001:888:2000:d::a6]:49102 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30173 Tarek=2C Thank you for the response back. Yes=2C your idea is pretty clear to me. Th= e point is that higher workload you put in your application business logic= =2C repository=2C backend=2C whatever... less you will see in final results= comparison. This is obvious and we=2C as technical people=2C very well und= erstand 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 over= table that has no index=2C let say)=2C some use caches=2C some split jobs = to be run in background=2C some parallel them... I have to state that simpl= e 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 add= a box=2C some see that a likely to be a problem further it goes. The good = thing - you have a choice=2C you are not locked=2C and as result you are re= sponsible for the effectiveness of the system you build today and definitel= y next one. Take care. Andriy ---------------------------------------- > Date: Wed=2C 26 Sep 2012 11:08:19 +0200 > From: tarek@ziade.org > To: andriy.kornatskyy@live.com > CC: python-list@python.org > Subject: Re: Fastest web framework > > On 9/25/12 3:21 PM=2C Andriy Kornatskyy wrote: > > Tarek=2C > > > > With all respect=2C running benchmark on something that has sleeps=2C e= tc is pretty far from real world use case. So I went a little bit different= way. > 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=2C besides the DB calls. > > The whole function tries to simulate a real application=2C unlike printin= g > 'Hello World' - to put the stack under realistic conditions. > > The multiplication is cached by the processor=2C but will still push some > CPU work on every call. > > > > > 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.w= eb) and various template engines (jinja2=2C mako=2C tenjin=2C wheezy.templa= te 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 im= plementing the same things. The same applies to web frameworks (more or les= s depending on your choice). > > > > Thanks. > Great=2C thanks for the update ! -- that's cool to bench the template > engines=2C 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=2C and see how the whole stack reacts on hig= h > load. > > But I guess we have different goals - wheezy seems really fast=2C congrat= s. > > > Cheers > Tarek > > > Andriy > > > > > > ---------------------------------------- > >> Date: Mon=2C 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=2C Andriy Kornatskyy wrote: > >>> I have run recently a benchmark of a trivial 'hello world' applicatio= n for various python web frameworks (bottle=2C django=2C flask=2C pyramid= =2C web.py=2C 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=2C but that's n= ot > >> 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 > > > =