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


Groups > comp.lang.python > #30071

RE: Fastest template engine

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <andriy.kornatskyy@live.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.043
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'output': 0.04; 'escape': 0.07; 'welcome.': 0.07; 'python': 0.09; 'sep': 0.09; 'template': 0.11; '(author': 0.16; '+0300': 0.16; 'interesting:': 0.16; 'unicode.': 0.16; 'skip:- 40': 0.21; 'thanks.': 0.21; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'there.': 0.28; 'run': 0.28; 'post': 0.28; 'assert': 0.29; 'date:': 0.29; 'url:mailman': 0.29; 'related': 0.30; 'url:2012': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'comments': 0.33; 'from:addr:live.com': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'updated': 0.34; 'fastest': 0.35; 'subject:': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'test': 0.36; 'subject:: ': 0.38; 'from:': 0.38; 'comment': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'email name:python-list': 0.62; 'engines': 0.62; 'url:blogspot': 0.64; 'due': 0.66; 'believe': 0.69; 'email addr:live.com': 0.71; 'benchmark': 0.84; 'received:157.55.0.216': 0.84; 'received:dub0-omc1-s17.dub0.hotmail.com': 0.84; 'templates.': 0.84; 'charset:windows-1251': 0.97
X-Originating-IP [194.44.213.194]
From Andriy Kornatskyy <andriy.kornatskyy@live.com>
To <python-list@python.org>
Subject RE: Fastest template engine
Date Tue, 25 Sep 2012 15:27:59 +0300
Importance Normal
In-Reply-To <DUB117-W61FFFFB17826AE69188FF919F0@phx.gbl>
References <DUB117-W61FFFFB17826AE69188FF919F0@phx.gbl>
Content-Type text/plain; charset="windows-1251"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-OriginalArrivalTime 25 Sep 2012 12:27:59.0691 (UTC) FILETIME=[3311E1B0:01CD9B19]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1329.1348576148.27098.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348576148 news.xs4all.nl 6972 [2001:888:2000:d::a6]:35636
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30071

Show key headers only | View raw


The post has been updated due to comment from Makoto Kuwata (author of tenjin) related to use of optimized version of HTML escape in tenjin templates.

I believe Mako and Jinja2 both are using MarkupSafe which serves exactly for that purpose there.

The test assert the output is unicode.

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

Thanks.

Andriy


----------------------------------------
> From: andriy.kornatskyy@live.com
> To: python-list@python.org
> Subject: Fastest template engine
> Date: Sun, 23 Sep 2012 12:24:36 +0300
>
>
> I have run recently a benchmark of a trivial 'big table' example for various python template engines (jinja2, mako, tenjin, tornado and wheezy.template) run on cpython2.7 and pypy1.9...... you might find it interesting:
>
> http://mindref.blogspot.com/2012/07/python-fastest-template.html
>
> Comments or suggestions are welcome.
>
> Thanks.
>
> Andriy Kornatskyy
> --
> http://mail.python.org/mailman/listinfo/python-list
 		 	   		  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: Fastest template engine Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-09-25 15:27 +0300

csiph-web