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

2014-09-01 Thread Armin Rigo
Hi, On 1 September 2014 17:06, Phyo Arkar 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-r732

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

2014-09-01 Thread Phyo Arkar
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? On Mon, Sep 1, 2014 at 5:01 PM, Armin Rigo wrote: > Re-hi, > > On 1 September 2014 12:20, Armin Rigo wrote: >> Tweaked! > > Note that the final result is 33% faster

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

2014-09-01 Thread Alex Gaynor
Wow, nice catch! Alex On Mon, Sep 1, 2014 at 3:31 AM, Armin Rigo wrote: > Re-hi, > > On 1 September 2014 12:20, Armin Rigo wrote: > > Tweaked! > > Note that the final result is 33% faster in your example. > > > Armin > -- "I disapprove of what you say, but I will defend to the death your

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

2014-09-01 Thread Armin Rigo
Re-hi, On 1 September 2014 12:20, Armin Rigo wrote: > Tweaked! Note that the final result is 33% faster in your example. Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

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

2014-09-01 Thread Armin Rigo
Hi Alex, On 30 August 2014 08:43, Armin Rigo wrote: > went down from 5.8ms per loop to 208us. However, I see that running > the same example with 1 ascii chars went up from 41.4us to 139us. > Time to tweak. Tweaked! See 65ac482d28d6. This was because if you used this kind of code in RPyth