[Checkins] SVN: z3c.pt/trunk/ Removed the `second rendering` tests from the benchmark suite. Since we enable the file cache for the benchmarks, there's no difference between the first and second rendering anymore after the cache file has been written.

Hanno Schlichting plone at hannosch.info
Sat Jul 12 09:47:34 EDT 2008


Log message for revision 88288:
  Removed the `second rendering` tests from the benchmark suite. Since we enable the file cache for the benchmarks, there's no difference between the first and second rendering anymore after the cache file has been written.
  

Changed:
  U   z3c.pt/trunk/CHANGES.txt
  U   z3c.pt/trunk/benchmark/benchmark/tests.py

-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt	2008-07-12 13:38:19 UTC (rev 88287)
+++ z3c.pt/trunk/CHANGES.txt	2008-07-12 13:47:33 UTC (rev 88288)
@@ -4,6 +4,10 @@
 Version 0.8.x
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+- Removed the `second rendering` tests from the benchmark suite. Since we
+  enable the file cache for the benchmarks, there's no difference between the
+  first and second rendering anymore after the cache file has been written.
+
 - Require zope.i18n 3.5 and add support for using its new negotiate function.
   If you use the `zope_i18n_allowed_languages` environment variable the target
   language for a template is only negotiated once per template, instead of

Modified: z3c.pt/trunk/benchmark/benchmark/tests.py
===================================================================
--- z3c.pt/trunk/benchmark/benchmark/tests.py	2008-07-12 13:38:19 UTC (rev 88287)
+++ z3c.pt/trunk/benchmark/benchmark/tests.py	2008-07-12 13:47:33 UTC (rev 88288)
@@ -171,17 +171,6 @@
         print "zope.pagetemplate: %.2f" % t_zope
         print "                   %.2fX" % (t_zope/t_z3c)
 
-        print "--------------------------"
-        print " Second rendering"
-        print "--------------------------"
-
-        t_z3c = timing(z3cfile.render, table=table)
-        t_zope = timing(zopefile, table=table)
-
-        print "z3c.pt:            %.2f" % t_z3c
-        print "zope.pagetemplate: %.2f" % t_zope
-        print "                   %.2fX" % (t_zope/t_z3c)
-
     @benchmark(u"Big table (path) File")
     def testBigTablePathFile(self):
         table = self.table
@@ -203,17 +192,6 @@
         print "zope.pagetemplate: %.2f" % t_zope
         print "                   %.2fX" % (t_zope/t_z3c)
 
-        print "--------------------------"
-        print " Second rendering"
-        print "--------------------------"
-
-        t_z3c = timing(z3cfile.render, table=table, request=object())
-        t_zope = timing(zopefile, table=table, request=object())
-
-        print "z3c.pt:            %.2f" % t_z3c
-        print "zope.pagetemplate: %.2f" % t_zope
-        print "                   %.2fX" % (t_zope/t_z3c)
-
 # Use a custom context to add real i18n lookup
 
 from zope.i18n import translate



More information about the Checkins mailing list