django / djangobench

Harness and benchmarks for evaluating Django's performance over time
Other
210 stars 58 forks source link

template_render benchmark failing on 1.5alpha #10

Closed ptone closed 11 years ago

ptone commented 12 years ago

This works: djangobench --vcs=git --control=1.3 --experiment=1.4 template_render

This Doesn't djangobench --vcs=git --control=1.4 --experiment=master template_render

(django-dev)element:django (master)$ djangobench --vcs=git --control=1.4 --experiment=master template_render
Running benchmarks: template_render
Control: Django 1.4 (in git branch 1.4)
Experiment: Django 1.5.dev20120725205848 (in git branch master)

Running 'template_render' benchmark ...
Traceback (most recent call last):
  File "/Users/preston/Projects/Python/virtualenvs/django-dev/bin/djangobench", line 9, in <module>
    load_entry_point('djangobench==0.9', 'console_scripts', 'djangobench')()
  File "/Users/preston/Projects/code/forks/djangobench/djangobench/main.py", line 311, in main
    continue_on_errror = args.continue_on_errror
  File "/Users/preston/Projects/code/forks/djangobench/djangobench/main.py", line 62, in run_benchmarks
    experiment_data = run_benchmark(benchmark, trials, experiment_env)
  File "/Users/preston/Projects/code/forks/djangobench/djangobench/main.py", line 111, in run_benchmark
    out, _, _ = perf.CallAndCaptureOutput(command + ['-t', 1], env, track_memory=False, inherit_env=[])
  File "/Users/preston/Projects/code/forks/djangobench/djangobench/perf.py", line 1026, in CallAndCaptureOutput
    raise RuntimeError("Benchmark died: " + stderr)
RuntimeError: Benchmark died: Traceback (most recent call last):
  File "/Users/preston/Projects/code/forks/djangobench/djangobench/benchmarks/template_render/benchmark.py", line 38, in <module>
    'description': ('Render a somewhat complex, fairly typical template '
  File "/Users/preston/Projects/code/forks/djangobench/djangobench/utils.py", line 71, in run_benchmark
    benchmark_result = benchmark()
  File "/Users/preston/Projects/code/forks/djangobench/djangobench/benchmarks/template_render/benchmark.py", line 32, in benchmark
    render_to_response('permalink.html', context)
  File "/Users/preston/Projects/code/forks/django/django/shortcuts/__init__.py", line 20, in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  File "/Users/preston/Projects/code/forks/django/django/template/loader.py", line 172, in render_to_string
    return t.render(Context(dictionary))
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 141, in render
    return self._render(context)
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 135, in _render
    return self.nodelist.render(context)
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 831, in render
    bit = self.render_node(node, context)
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 845, in render_node
    return node.render(context)
  File "/Users/preston/Projects/code/forks/django/django/template/loader_tags.py", line 123, in render
    return compiled_parent._render(context)
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 135, in _render
    return self.nodelist.render(context)
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 831, in render
    bit = self.render_node(node, context)
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 845, in render_node
    return node.render(context)
  File "/Users/preston/Projects/code/forks/django/django/template/defaulttags.py", line 366, in render
    return strip_spaces_between_tags(self.nodelist.render(context).strip())
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 831, in render
    bit = self.render_node(node, context)
  File "/Users/preston/Projects/code/forks/django/django/template/base.py", line 845, in render_node
    return node.render(context)
  File "/Users/preston/Projects/code/forks/django/django/template/defaulttags.py", line 419, in render
    raise e
django.core.urlresolvers.NoReverseMatch: Reverse for '' with arguments '()' and keyword arguments '{}' not found.

(django-dev)element:django (master)$ 
ramiro commented 11 years ago

Fixed in 485a82a8b45c5cb211a7e7d71af1228645485855.