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


Groups > comp.lang.python > #31930 > unrolled thread

RE: Fastest template engine

Started byAndriy Kornatskyy <andriy.kornatskyy@live.com>
First post2012-10-23 15:45 +0300
Last post2012-10-23 15:45 +0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: Fastest template engine Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-10-23 15:45 +0300

#31930 — RE: Fastest template engine

FromAndriy Kornatskyy <andriy.kornatskyy@live.com>
Date2012-10-23 15:45 +0300
SubjectRE: Fastest template engine
Message-ID<mailman.2663.1350996362.27098.python-list@python.org>
Python template engines offer high reusability of markup code and the following features are used by content developers most of the time:

* Includes: useful to incorporate some snippets of content that in most cases are common to the site, e.g. footer, scripts, styles, etc.

* Extends: useful to define a master layout for the majority of the site content with placeholders, e.g. sidebar, horizontal menu, content, etc. The content developers extend the master layout by substituting available placeholders.

* Widgets: usually small snippets of highly reusable markup, e.g. list item, button, etc. The content developers use widgets to increase readability and enforce consistency of design.

All mentioned features above are examined for various template engines (django, jinja2, mako, tornado and wheezy.template) in the following post:

http://mindref.blogspot.com/2012/10/python-templates-benchmark.html

The test is executed in isolated environment using CPython 2.7 but can be run for Python 3.3 and/or PyPy 1.9. Source code is here:

https://bitbucket.org/akorn/helloworld

Comments or suggestions are welcome.

Thanks.

Andriy


----------------------------------------
> From: andriy.kornatskyy@live.com
> To: python-list@python.org
> Subject: RE: Fastest template engine
> Date: Fri, 19 Oct 2012 11:34:41 +0300
>
>
> Per community request cheetah has been added to benchmark. Post updated, just in case:
>
> http://mindref.blogspot.com/2012/07/python-fastest-template.html
>
> Comments or suggestions are welcome.
>
> Andriy
>
>
> ----------------------------------------
> > From: andriy.kornatskyy@live.com
> > To: python-list@python.org
> > Subject: RE: Fastest template engine
> > Date: Wed, 26 Sep 2012 16:21:21 +0300
> >
> >
> > The post has been updated with the following template engines added (per community request):
> >
> > 1. chameleon
> > 2. django
> > 3. web2py
> >
> > Here is a link:
> >
> > http://mindref.blogspot.com/2012/07/python-fastest-template.html
> >
> > Comments or suggestions are welcome.
> >
> > 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
> >
>
> --
> http://mail.python.org/mailman/listinfo/python-list
 		 	   		  

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web