edmund-huber / jsonq

a python script for querying JSON
22 stars 3 forks source link

prefer simplejson to json #2

Closed slingamn closed 12 years ago

slingamn commented 12 years ago

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.