Edgewall Software
Version 5 (modified by cmlenz, 8 years ago)

--

Performance of the Markup Template Engine

The directory examples/bench has some very simple benchmarks to compare the performance of Markup to other template engines.

It should be noted that text-based template engines generally have a lot less work to do than XML-based ones, simply because their functionality is limited to processing text as opposed to processing markup.

Current results

All tests run under Python 2.4.3 on Mac OS X (MacBook 2GHz).

Template Engine Rendering time (less is better) Notes
Markup 5.10 ms
 Kid 5.61 ms Kid templates are compiled to Python byte-code. The Python implementation of ElementTree was used for this test.
 Clearsilver 0.31 ms ClearSilver is a text-based template engine written in C.

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.