Changes between Version 8 and Version 9 of GenshiPerformance
- Timestamp:
- Jul 15, 2006, 1:44:56 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiPerformance
v8 v9 10 10 11 11 || '''Template Engine''' || '''Rendering time (less is better)''' || '''Notes''' || 12 || Markup || 4. 77ms || ||12 || Markup || 4.13 ms || || 13 13 || [http://www.clearsilver.net/ Clearsilver] || 0.33 ms || !ClearSilver is a text-based template engine written in C. || 14 14 || [http://www.djangoproject.com/documentation/templates/ Django] || 1.84 ms || Text-based template engine that comes with the [http://www.djangoproject.com/ Django] framework. || 15 15 || [http://kid.lesscode.org/ Kid] || 5.66 ms || Kid templates are compiled to Python byte-code. The cElementTree implementation was used for this test, although using the Python implementation doesn't appear to make a significant difference. || 16 || [http://www.owlfish.com/software/simpleTAL/ SimpleTAL] || 2.07 ms || Another XML-based template engine written in Python, based on the [http://www.zope.org/ Zope] template engine (TAL). ''The template is a bit simpler than the other ones, due to me not being able to figure out how to do conditional attributes. || 16 17 17 18 The test template is rather simple right now and doesn't make much use of the advanced features provided by either Markup or Kid, because then it would be impossible to implement an equivalent template using other template languages. 19 20 == Another benchmark == 21 22 There's another simple benchmark in the Markup repository: [source:/trunk/examples/basic/ examples/basic]. That example is however only implemented for Markup and Kid. Here are the numbers: 23 24 || '''Template Engine''' || '''Rendering time (less is better)''' || 25 || Markup || 3.67 ms || 26 || [http://kid.lesscode.org/ Kid] || 9.45 ms || 27 28 I'm not quite sure why the difference between Markup and Kid is so much more drastic in this example compared to the above. It does define more (and slightly more sophisticated) match templates, which would suggest that Markup implements those more efficiently. However, that's just a theory.