Edgewall Software

Changes between Version 13 and Version 14 of GenshiPerformance


Ignore:
Timestamp:
Aug 1, 2006, 6:59:09 PM (18 years ago)
Author:
cmlenz
Comment:

Add bigtable benchmark

Legend:

Unmodified
Added
Removed
Modified
  • GenshiPerformance

    v13 v14  
    55  ''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.''
    66
    7 == Current results ==
     7== `basic` benchmark ==
     8
     9The [source:/trunk/examples/bench/basic.py basic.py] benchmark is based on a relatively simple template that includes a lot of the common templating constructs, such as includes/inheritance, looping, conditionals, macros, etc.
    810
    911All tests run under Python 2.4.3 on Mac OS X (!MacBook 2GHz).
     
    1921The 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.
    2022
     23== `bigtable` benchmark ==
     24
     25The [source:/trunk/examples/bench/bigtable.py bigtable.py] benchmark renders a large HTML table (with 1000 rows and 10 columns) in two nested loops, where each cell contains a variable reference. This basically measures the raw throughput of the template engine, while not using any advanced features.
     26
     27|| '''Template Engine''' || '''Rendering time (less is better)''' || '''Notes''' ||
     28|| Markup || 882 ms || ||
     29|| Markup + Speedups || 644 ms || [source:/branches/experimental/speedups Experimental Markup branch] that implements some core portions in C. ||
     30|| [http://kid-templating.org/ Kid] || 948 ms || ||
     31|| [http://effbot.org/zone/element-index.htm ElementTree] || 329 ms || ''Not a template engine'': the benchmark simply constructs the XML tree in memory and serializes it. ||
     32|| [http://effbot.org/zone/celementtree.htm cElementTree] || 202 ms || ''Not a template engine'': the benchmark simply constructs the XML tree in memory and serializes it. ||
     33|| [http://www.clearsilver.net/ Clearsilver] || 0.73 ms || ||
     34
    2135== Another benchmark ==
    2236