Re: benchmark
On Aug 7, 2:52 pm, M8R-n7v...@mailinat or.com wrote:
I have since updated the post to reflect the python with psyco timings
as well.
On Aug 7, 2:52 pm, M8R-n7v...@mailinat or.com wrote:
On Aug 7, 6:38 am, bearophileH...@ lycos.com wrote:
>
>
>>
>
Yes, this was pointed out in the comments. I had updated the code to
use
xrange and is and is not instead of range, == and !=, which is how
the
benchmark got updated to 192 microseconds. Moving the main loop into
a main function resulted in no discernible difference.
>
Testing with psyco resulted in a time of 33 microseconds per
iteration.
>
>
On Aug 7, 2:05 am, "Jack" <nos...@invalid .comwrote:
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:
Python as one of the slowest languages in the test:
That Python code is bad, it contains range() instead of xrange, the
big loop is in the main code instead of inside a function, uses ==
None, etc. That person can try this (with Psyco), I have changed very
little, the code is essentially the same:
big loop is in the main code instead of inside a function, uses ==
None, etc. That person can try this (with Psyco), I have changed very
little, the code is essentially the same:
Yes, this was pointed out in the comments. I had updated the code to
use
xrange and is and is not instead of range, == and !=, which is how
the
benchmark got updated to 192 microseconds. Moving the main loop into
a main function resulted in no discernible difference.
>
Testing with psyco resulted in a time of 33 microseconds per
iteration.
>
as well.
Comment