diff options
author | Rune Halvorsen <runefh@gmail.com> | 2010-04-10 12:53:44 +0200 |
---|---|---|
committer | Rune Halvorsen <runefh@gmail.com> | 2010-04-10 12:53:44 +0200 |
commit | 55a5dd40e9f259053aae73c8b5fc761afe71be36 (patch) | |
tree | 7c9368fdb220123643ff7a3ab8197d4481c41dcc | |
parent | f7b0fdd9614234800438e4cac24a4e6e4719c4bf (diff) | |
download | anyjson-55a5dd40e9f259053aae73c8b5fc761afe71be36.tar.gz |
Fixed benchmark bug. Was changing test data mid run
-rw-r--r-- | tests/benchmark.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/benchmark.py b/tests/benchmark.py index 1a02979..220b2c1 100644 --- a/tests/benchmark.py +++ b/tests/benchmark.py @@ -100,7 +100,7 @@ def do_benchmark(impspec, json, runs=10): start = time.time() for n in xrange(runs): - data = dumps(data) + devnull = dumps(data) return readtime, time.time() - start # tuple (readtime, writetime) @@ -111,9 +111,9 @@ modules = [("json", "loads", "dumps"), ("cjson", "decode", "encode"), ("django.utils.simplejson", "loads", "dumps"), ("jsonpickle", "decode", "encode"), - #("jsonlib", "read", "write"), + ("jsonlib", "read", "write"), ("jsonlib2", "read", "write"), - # ("demjson", "decode"), terribly slow. wont include it + #("demjson", "decode"), terribly slow. wont include it ] if len(sys.argv) > 1 and sys.argv[1] == "--download": |