[BangPypers] PyPy outperforms C in microbenchmark
Noufal Ibrahim
noufal at gmail.com
Wed Aug 3 09:52:46 CEST 2011
Anand Balachandran Pillai <abpillai at gmail.com> writes:
> On Wed, Aug 3, 2011 at 12:50 PM, Noufal Ibrahim <noufal at gmail.com> wrote:
>
>>
>> PyPy outperforms C in a little benchmark capitalising on gcc's inability
>> to optimise across files.
>>
>>
>> http://morepypy.blogspot.com/2011/08/pypy-is-faster-than-c-again-string.html
>>
>
> Not sure if that is the only factor playing here. I am pretty sure
> the malloc/free every cycle is killing the C program.
[...]
Well, the original benchmark without dynamic allocation is slower that
the PyPy version too. Your point however is sound.
--
~noufal
http://nibrahim.net.in
If I could drop dead right now, I'd be the happiest man alive! -- Samuel Goldwyn
More information about the BangPypers
mailing list