mirror of
https://github.com/wrabit/django-cotton.git
synced 2025-07-24 09:53:48 +00:00
Made c-vars optional
This commit is contained in:
parent
8aa156cf8c
commit
0c55ca9f18
6 changed files with 37 additions and 50 deletions
|
@ -46,7 +46,7 @@ settings.configure(
|
|||
django.setup()
|
||||
|
||||
|
||||
def benchmark_template_rendering(template_name, iterations=1):
|
||||
def benchmark_template_rendering(template_name, iterations=10000):
|
||||
start_time = time.time()
|
||||
for _ in range(iterations):
|
||||
render_to_string(template_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue