Message6923
import jinja2
import time
astr = '{% for a in [] -%}{%- endfor %}' * 100
start_time = time.time()
env = jinja2.Environment()
template = env.from_string(astr)
print "Script runtime duration: %s seconds" % (time.time() - start_time)
python testjinja.py
Script runtime duration: 0.0939998626709 seconds
java -jar jython.jar testjinja.py
Script runtime duration: 1.06200003624 seconds |
|
Date |
User |
Action |
Args |
2012-03-20 16:42:26 | ssteiner | set | recipients:
+ ssteiner |
2012-03-20 16:42:26 | ssteiner | set | messageid: <1332261746.32.0.00651556435471.issue1858@psf.upfronthosting.co.za> |
2012-03-20 16:42:26 | ssteiner | link | issue1858 messages |
2012-03-20 16:42:26 | ssteiner | create | |
|