[pypy-issue] [issue868] Pypy json.dumps >100% slower than CPython 2.7, simplejson
Brian Kearns
tracker at bugs.pypy.org
Sat Mar 23 08:43:47 CET 2013
Brian Kearns <bdkearns at gmail.com> added the comment:
Took a look at this again. We do better, but still 'break down' on the HUGE
case.
$ python2.7 bench.py
Test case: EMPTY
loops per run 308000
Best performances: 3.25 usec/loop
Test case: SIMPLE
loops per run 184000
Best performances: 5.49 usec/loop
Test case: NESTED
loops per run 98000
Best performances: 10.25 usec/loop
Test case: HUGE
loops per run 1000
Best performances: 2873.16 usec/loop
$ ../../pypy/pypy-c bench.py
Test case: EMPTY
loops per run 1451320
Best performances: 0.03 usec/loop
Test case: SIMPLE
loops per run 156740
Best performances: 2.20 usec/loop
Test case: NESTED
loops per run 93110
Best performances: 10.18 usec/loop
Test case: HUGE
loops per run 180
Best performances: 57414.41 usec/loop
----------
nosy: +bdk
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue868>
________________________________________
More information about the pypy-issue
mailing list