Edgewall Software

Changes between Version 29 and Version 30 of GenshiPerformance


Ignore:
Timestamp:
Jun 28, 2007, 8:04:05 PM (17 years ago)
Author:
cmlenz
Comment:

Updated for Genshi trunk, new benchmarking machine

Legend:

Unmodified
Added
Removed
Modified
  • GenshiPerformance

    v29 v30  
    99The [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.
    1010
    11 All tests run under Python 2.4.3 on Mac OS X (!MacBook 2GHz).
     11All tests run under Python 2.4.4 on Mac OS X (!iMac 2.16 GHz).
    1212
    1313|| '''Template Engine''' || '''Rendering time (less is better)''' || '''Notes''' ||
    14 || Genshi || 4.08 ms || ||
    15 || [http://www.clearsilver.net/ Clearsilver] || 0.33 ms || !ClearSilver is a text-based template engine written in C. ||
    16 || [http://www.djangoproject.com/documentation/templates/ Django] || 1.84 ms || Text-based template engine that comes with the [http://www.djangoproject.com/ Django] framework. ||
    17 || [http://kid-templating.org/ Kid] || 6.97 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. ||
    18 || [http://www.owlfish.com/software/simpleTAL/ SimpleTAL] || 3.13 ms || Another XML-based template engine written in Python, based on the [http://www.zope.org/ Zope] template engine (TAL). ||
     14|| Genshi || 3.44 ms || ||
     15|| [http://www.clearsilver.net/ Clearsilver] || 0.30 ms || !ClearSilver is a text-based template engine written in C. ||
     16|| [http://www.makotemplates.org/ Mako] || 0.29 ms || Text-based template engine written in Python ||
     17|| [http://www.djangoproject.com/documentation/templates/ Django] || 1.38 ms || Text-based template engine that comes with the [http://www.djangoproject.com/ Django] framework. ||
     18|| [http://kid-templating.org/ Kid] || 6.19 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. ||
     19|| [http://www.owlfish.com/software/simpleTAL/ SimpleTAL] || 2.84 ms || Another XML-based template engine written in Python, based on the [http://www.zope.org/ Zope] template engine (TAL). ||
    1920
    2021The test template is rather simple right now and doesn't make much use of the advanced features provided by either Genshi or Kid, because then it would be impossible to implement an equivalent template using other template languages.
     
    2526
    2627|| '''Template Engine''' || '''Rendering time (less is better)''' || '''Notes''' ||
    27 || Genshi || 553 ms || ||
    28 || [http://kid-templating.org/ Kid] || 1235 ms || ||
    29 || [http://www.djangoproject.com/documentation/templates/ Django] || 357 ms || ||
    30 || [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. ||
    31 || [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. ||
    32 || [http://www.clearsilver.net/ Clearsilver] || 102 ms || ||
     28|| Genshi || 417 ms || ||
     29|| [http://kid-templating.org/ Kid] || 1123 ms || ||
     30|| [http://www.djangoproject.com/documentation/templates/ Django] || 474 ms || ||
     31|| [http://effbot.org/zone/element-index.htm ElementTree] || 293 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] || 179 ms || ''Not a template engine'': the benchmark simply constructs the XML tree in memory and serializes it. ||
     33|| [http://www.clearsilver.net/ Clearsilver] || 83 ms || ||
    3334
    3435''Note that both ET and cET are using Python code for serialization.''
     
    3940
    4041|| '''Template Engine''' || '''Rendering time (less is better)''' || '''Notes''' ||
    41 || Genshi || 3.09 ms || ||
    42 || [http://kid-templating.org/ Kid] || 7.94 ms || ||
     42|| Genshi || 2.94 ms || ||
     43|| [http://kid-templating.org/ Kid] || 6.98 ms || ||