django / djangobench

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

Three minor changes #5

Closed acdha closed 13 years ago

acdha commented 13 years ago

I ran into two minor problems while playing with djspeedcenter.djangy.com:

  1. time.clock()'s precision is very low on 32-bit Ubuntu - only a hundredth of a second - and that caused division-by-zero errors in many places. I used timeit.default_timer which uses time.clock() on Windows where it's more accurate and time.time() on Unix.
  2. setup.py didn't install the benchmarks directory - I believe this may fix #1 but the ticket's a bit vague.
  3. djangobench's l10n_render benchmark crashes under 1.3 because it doesn't define wsgi.input when initialize its WSGIRequest.