Permalink
Browse files

tweak benchmark

  • Loading branch information...
1 parent d23181f commit 3c0b7d9fa80c34998978a63858ffa6f106f88ccb @jlongster committed Oct 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bench/jinja.py
View
@@ -11,13 +11,14 @@
env = Environment(loader=FileSystemLoader('.'))
times = []
+arr = [5]*1000
for i in range(100):
env = Environment(loader=FileSystemLoader('.'))
t1 = time.time()
tmpl = env.get_template('index.html')
tmpl.render({'username': 'james',
- 'arr': [5]*1000})
+ 'arr': arr})
t2 = time.time()
times.append(t2-t1)

0 comments on commit 3c0b7d9

Please sign in to comment.