1. Ask Solem Hoel
  2. anyjson

Commits

Rune Halvorsen  committed 7203572

Fixed benchmark bug. Was changing test data mid run

  • Participants
  • Parent commits 814f8c2
  • Branches default

Comments (0)

Files changed (1)

File tests/benchmark.py

View file
  • Ignore whitespace
 
     start = time.time()
     for n in xrange(runs):
-        data = dumps(data)
+        devnull = dumps(data)
 
     return readtime, time.time() - start # tuple (readtime, writetime)
 
            ("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":