edmund-huber/jsonq — pull request #2 by slingamn (2012-01-25 05:44:38+00:00)
Title: prefer simplejson to json

Stupid benchmark to decode 1000 lines of ranger:

On 2.6:

shivaram@adhoc1:~$ python jsonbench.py < ranger_1k_new
0.252465963364
shivaram@adhoc1:~$ python jsonbench.py --standard < ranger_1k_new
4.91389703751

On 2.7:

[shivaram@good-fortune jsonq]$ python jsonbench.py < ranger_1k_new
0.129061937332
[shivaram@good-fortune jsonq]$ python jsonbench.py --standard < ranger_1k_new
0.237536907196

So the 2.7 standard json is better than the 2.6 standard json, but simplejson is probably preferable in general.