[Checkins] SVN: z3c.pt/trunk/z3c/pt/BENCHMARKS.txt The canonical benchmark template now employs a larger subset of the template language. Benchmark results are largely unchanged.

Malthe Borch mborch at gmail.com
Sat Feb 16 07:49:18 EST 2008


Log message for revision 83886:
  The canonical benchmark template now employs a larger subset of the template language. Benchmark results are largely unchanged.

Changed:
  U   z3c.pt/trunk/z3c/pt/BENCHMARKS.txt

-=-
Modified: z3c.pt/trunk/z3c/pt/BENCHMARKS.txt
===================================================================
--- z3c.pt/trunk/z3c/pt/BENCHMARKS.txt	2008-02-16 12:28:44 UTC (rev 83885)
+++ z3c.pt/trunk/z3c/pt/BENCHMARKS.txt	2008-02-16 12:49:18 UTC (rev 83886)
@@ -2,8 +2,8 @@
 ==========
 
                   zope.pagetemplate     z3c.pt
-Hello World       2.90                  1     
-1000 x 10 table   6.108                 1
+Hello World       3.55                  1     
+1000 x 10 table   6.02                  1
 
 Source
 ------
@@ -37,8 +37,11 @@
   ... <table xmlns="http://www.w3.org/1999/xhtml"
   ...        xmlns:tal="http://xml.zope.org/namespaces/tal">
   ...   <tr tal:repeat="row table">
-  ...      <td tal:repeat="c row.values()"
-  ...          tal:content="c" />
+  ...      <td tal:repeat="c row.values()">
+  ...          <span tal:define="d c + 1"
+  ...                tal:attributes="class 'column-' + str(d)"
+  ...                tal:content="d" />
+  ...      </td>
   ...   </tr>
   ... </table>""")
 
@@ -49,8 +52,11 @@
   ... <table xmlns="http://www.w3.org/1999/xhtml"
   ...        xmlns:tal="http://xml.zope.org/namespaces/tal">
   ...   <tr tal:repeat="row options/table">
-  ...      <td tal:repeat="c python: row.values()"
-  ...          tal:content="c" />
+  ...      <td tal:repeat="c python: row.values()">
+  ...          <span tal:define="d python: c + 1"
+  ...                tal:attributes="class string:column-${d}"
+  ...                tal:content="d" />
+  ...      </td>
   ...   </tr>
   ... </table>""", 'text/xhtml')
 



More information about the Checkins mailing list