aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bench
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bench')
-rw-r--r--examples/bench/basic.py2
-rw-r--r--examples/bench/cheetah/template.tmpl4
-rw-r--r--examples/bench/kid/template.kid2
-rw-r--r--examples/bench/mako/template.html4
-rw-r--r--examples/bench/mako_inheritance/base.html2
-rw-r--r--examples/bench/mako_inheritance/template.html2
6 files changed, 8 insertions, 8 deletions
diff --git a/examples/bench/basic.py b/examples/bench/basic.py
index 84c4b11..c335b7f 100644
--- a/examples/bench/basic.py
+++ b/examples/bench/basic.py
@@ -133,7 +133,7 @@ def run(engines, number=2000, verbose=False):
t = timeit.Timer(setup='from __main__ import %s; render = %s(r"%s", %s)'
% (engine, engine, dirname, verbose),
stmt='render()')
-
+
time = t.timeit(number=number) / number
if verbose:
print '--------------------------------------------------------'
diff --git a/examples/bench/cheetah/template.tmpl b/examples/bench/cheetah/template.tmpl
index c7cf1e4..f1c2243 100644
--- a/examples/bench/cheetah/template.tmpl
+++ b/examples/bench/cheetah/template.tmpl
@@ -10,13 +10,13 @@
#def greeting(name)
<p>hello ${name}!</p>
#end def
-
+
#include "cheetah/header.tmpl"
$greeting($user)
$greeting('me')
$greeting('world')
-
+
<h2>Loop</h2>
#if $list_items
<ul>
diff --git a/examples/bench/kid/template.kid b/examples/bench/kid/template.kid
index 5da52e4..7f79d7a 100644
--- a/examples/bench/kid/template.kid
+++ b/examples/bench/kid/template.kid
@@ -12,7 +12,7 @@
<div>${greeting(user)}</div>
<div>${greeting('me')}</div>
<div>${greeting('world')}</div>
-
+
<h2>Loop</h2>
<ul py:if="items">
<li py:for="idx, item in enumerate(items)" py:content="item"
diff --git a/examples/bench/mako/template.html b/examples/bench/mako/template.html
index 96ccf79..d5ded9a 100644
--- a/examples/bench/mako/template.html
+++ b/examples/bench/mako/template.html
@@ -10,13 +10,13 @@
<%def name="greeting(name)">
<p>hello ${name}!</p>
</%def>
-
+
<%include file="header.html"/>
${greeting(user)}
${greeting('me')}
${greeting('world')}
-
+
<h2>Loop</h2>
% if list_items:
<ul>
diff --git a/examples/bench/mako_inheritance/base.html b/examples/bench/mako_inheritance/base.html
index 87f0f24..84b2930 100644
--- a/examples/bench/mako_inheritance/base.html
+++ b/examples/bench/mako_inheritance/base.html
@@ -10,7 +10,7 @@
<%def name="greeting(name)">
<p>hello ${name}!</p>
</%def>
-
+
<div id="header">
<h1>${title}</h1>
</div>
diff --git a/examples/bench/mako_inheritance/template.html b/examples/bench/mako_inheritance/template.html
index 45a6822..7c53bf1 100644
--- a/examples/bench/mako_inheritance/template.html
+++ b/examples/bench/mako_inheritance/template.html
@@ -3,7 +3,7 @@
${parent.greeting(user)}
${parent.greeting('me')}
${parent.greeting('world')}
-
+
<h2>Loop</h2>
% if list_items:
<ul>