[Zope3-checkins] CVS: Zope3/src/zope/tal/tests - markbench.py:1.4
Fred L. Drake, Jr.
fred@zope.com
Mon, 7 Apr 2003 18:26:11 -0400
Update of /cvs-repository/Zope3/src/zope/tal/tests
In directory cvs.zope.org:/tmp/cvs-serv25249
Modified Files:
markbench.py
Log Message:
Avoid all the basic timings when only profile data is needed;
profile_tal() takes care of cache-warming on its own.
=== Zope3/src/zope/tal/tests/markbench.py 1.3 => 1.4 ===
--- Zope3/src/zope/tal/tests/markbench.py:1.3 Mon Apr 7 18:22:12 2003
+++ Zope3/src/zope/tal/tests/markbench.py Mon Apr 7 18:26:10 2003
@@ -94,10 +94,10 @@
dtml_fn = 'benchmark/dtml%.2d.html'
def compare(n, count, profiler=None, verbose=1):
- t1 = int(time_zpt(tal_fn % n, count) * 1000 + 0.5)
- t2 = int(time_tal(tal_fn % n, count) * 1000 + 0.5)
- t3 = 'n/a' # int(time_dtml(dtml_fn % n, count) * 1000 + 0.5)
if verbose:
+ t1 = int(time_zpt(tal_fn % n, count) * 1000 + 0.5)
+ t2 = int(time_tal(tal_fn % n, count) * 1000 + 0.5)
+ t3 = 'n/a' # int(time_dtml(dtml_fn % n, count) * 1000 + 0.5)
print '%.2d: %10s %10s %10s' % (n, t1, t2, t3)
if profiler:
profile_tal(tal_fn % n, count, profiler)