[Python-Dev] Status of json (simplejson) in cpython
Vinay Sajip
vinay_sajip at yahoo.co.uk
Sun Apr 17 12:33:26 CEST 2011
Antoine Pitrou <solipsis <at> pitrou.net> writes:
> Feel free to share your numbers.
I've now got my fork working on Python 3.2 with speedups. According to a
non-scientific simple test:
Python 2.7
==========
Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2]
11.21484375 KiB read
Timing simplejson:
0.271898984909
Timing stdlib json:
0.338716030121
Python 3.2
==========
Python version: 3.2 (r32:88445, Mar 25 2011, 19:28:28)
[GCC 4.5.2]
11.21484375 KiB read
Timing simplejson:
0.3150200843811035
Timing stdlib json:
0.32146596908569336
Based on this test script:
https://gist.github.com/923927
and the simplejson version here:
https://github.com/vsajip/simplejson/
Regards,
Vinay Sajip
More information about the Python-Dev
mailing list