Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin.stu.neva.ru!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'case.': 0.05; 'frameworks': 0.05; 'startup': 0.05; 'things.': 0.05; 'url:bitbucket': 0.05; 'tarek': 0.07; 'welcome.': 0.07; 'python': 0.09; 'django,': 0.09; 'sep': 0.09; 'stack,': 0.09; 'url:github': 0.09; 'template': 0.11; 'applies': 0.15; "'hello": 0.16; '(more': 0.16; '11:19': 0.16; 'choice).': 0.16; 'interesting:': 0.16; 'tarek,': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'implementing': 0.17; 'app': 0.19; '+0200': 0.20; 'skip:- 40': 0.21; 'trying': 0.21; 'bit': 0.21; 'thanks.': 0.21; 'example': 0.23; 'to:2**1': 0.23; 'cheers': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'implemented': 0.27; 'went': 0.28; 'run': 0.28; 'post': 0.28; 'app.': 0.29; 'argue': 0.29; 'measure': 0.29; 'date:': 0.29; 'url:mailman': 0.29; 'source': 0.29; 'framework': 0.30; 'hosted': 0.30; 'url:2012': 0.30; 'code': 0.31; 'url:python': 0.32; 'to:no real name:2**1': 0.32; 'running': 0.32; 'url:listinfo': 0.32; 'comments': 0.33; 'goes': 0.33; 'curious': 0.33; 'from:addr:live.com': 0.33; 'to:addr:python-list': 0.33; 'server': 0.35; 'fastest': 0.35; 'something': 0.35; 'really': 0.36; 'subject:': 0.36; 'but': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'does': 0.37; 'uses': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'things': 0.38; 'shows': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'application': 0.40; 'url:mail': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'real': 0.61; '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; 'benchmark': 0.84; 'semi': 0.84; 'server)': 0.84; 'to:addr:tarek': 0.84; 'url:master': 0.84; 'url:template': 0.91; '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: Tue, 25 Sep 2012 16:21:07 +0300 Importance: Normal In-Reply-To: <50604907.6060405@ziade.org> References: , <50604907.6060405@ziade.org> Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 25 Sep 2012 13:21:08.0133 (UTC) FILETIME=[9F878550:01CD9B20] 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: 72 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348579337 news.xs4all.nl 6851 [2001:888:2000:d::a6]:34269 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30077 Tarek=2C With all respect=2C running benchmark on something that has sleeps=2C etc i= s 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 whe= ezy.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=2C mako=2C tenjin=2C wheezy.template a= nd wheezy.template with preprocessor)... Please see the following post unde= r `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 implem= enting the same things. The same applies to web frameworks (more or less de= pending on your choice). Thanks. 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' application = 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... yo= u 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 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/uti= l.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 =