[Python-Dev] Status of json (simplejson) in cpython

Stefan Behnel stefan_ml at behnel.de
Sun Apr 17 15:50:06 CEST 2011


Vinay Sajip, 17.04.2011 12:33:
> Antoine Pitrou 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/

Is this using the C accelerated version in both cases? What about the pure 
Python versions? Could you provide numbers for both?

Stefan



More information about the Python-Dev mailing list