benchmark

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Thu Aug 7 06:04:04 EDT 2008


Steven D'Aprano a écrit :
> On Thu, 07 Aug 2008 07:49:45 +0200, Stefan Behnel wrote:
> 
>> Jack wrote:
>>> I know one benchmark doesn't mean much but it's still disappointing to
>>> see Python as one of the slowest languages in the test:
>>>
>>> http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-
> python-ruby-jython-jruby-groovy/
>> Just ignore that. If the code had been designed for Python from the
>> start, it would have performed a lot better.
> 
> 
> I recommend folks copy and paste his code into an interactive session, 
> and watch the thousands of <__main__.Person object at 0xb7f18e2c> that 
> flash onto the screen. You want to know why it's so slow? That's part of 
> the reason.

This only happens when run in an interactive session.




More information about the Python-list mailing list