4 ms·
The tests are using simplejson. Someone added cjson (impressive) results in the comparison, over at reddit: http://www.reddit.com/r/programming/comments/811gl/c
by Gonsalu 18y ago
The tests are using simplejson. Someone added cjson (impressive) results in the comparison, over at reddit: http://www.reddit.com/r/programming/comments/811gl/comparing_thrift_protocol_buffers_and_compressed/c07ynfo http://www.reddit.com/r/programming/comments/811gl/comparing...
- inklesspen 18y agoThe tests apparently were not run with simplejson's c extension speedups compiled in. I did so: http://gist.github.com/72412 http://gist.github.com/72412 Simplejson was slightly faster on two out of three tests. Consistently so, when I re-ran the tests. Test environment: py2.6 on Mac OS X, with simplejson 2.0.9 and python-cjson 1.0.5 Test script: http://gist.github.com/72413 http://gist.github.com/72413 Also, I changed the test script from using time.time() to time.clock(), which according to the python docs should be used for performance testing on unixes.