Skip to content

Commit

Permalink
Forced a couple of querysets to execute.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobian committed Jun 20, 2010
1 parent 86deb87 commit 265cdf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/query_dates/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from utils import run_benchmark

def benchmark():
Book.objects.dates("created_date", "year", "ASC")
list(Book.objects.dates("created_date", "year", "ASC"))

run_benchmark(benchmark, trials=50)
2 changes: 1 addition & 1 deletion benchmarks/query_none/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from utils import run_benchmark

def benchmark():
Book.objects.none()
list(Book.objects.none())

run_benchmark(benchmark, trials=50)

0 comments on commit 265cdf9

Please sign in to comment.