[pypy-dev] pypy 2.3.1 json encoding performnce is Extremely slow (30x slower ).

Phyo Arkar phyo.arkarlwin at gmail.com
Tue Sep 2 14:24:12 CEST 2014


Very nice. Pypy is the future.
On Sep 1, 2014 10:25 PM, "Armin Rigo" <arigo at tunes.org> wrote:

> Hi,
>
> On 1 September 2014 17:06, Phyo Arkar <phyo.arkarlwin at gmail.com> wrote:
> > Thanks a lot. I haven't get to test lastest commit yet.
> > So in that , attached benchmark in pypy is running faster than python
> now?
>
> Yes, for the utf-8 test (the tests with "double" didn't change).  Here
> is what I get on Linux 64:
>
> $ pypy-c-r73264-jit benchmark.py
>
> Array with 256 doubles:
> simplejson encode : 3871.15257 calls/sec
> simplejson decode : 14651.04979 calls/sec
> Array with 256 utf-8 strings:
> simplejson encode UTF : 1393.29238 calls/sec
> simplejson decode UTF : 276.03465 calls/sec
>
> $ python benchmark.py      # 2.7.3
>
> Array with 256 doubles:
> simplejson encode : 3469.44902 calls/sec
> simplejson decode : 12419.69240 calls/sec
> Array with 256 utf-8 strings:
> simplejson encode UTF : 1278.32368 calls/sec
> simplejson decode UTF : 355.18049 calls/sec
>
>
> A bientôt,
>
> Armin.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20140902/13cf3fc3/attachment.html>


More information about the pypy-dev mailing list