On 11/09/2007, Nicholas Bastin <[EMAIL PROTECTED]> wrote: > On 9/11/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > 3.0: 10 loops, best of 3: 6.76 sec per loop > > > 2.6: 10 loops, best of 3: 2.61 sec per loop > > > > I can't quite reproduce these results. On a 3.2GHz Pentium 4, > > running Linux 2.6.21, gcc 4.1.3, I get > > > > 3.0: 10 loops, best of 3: 728 msec per loop > > 2.6: 10 loops, best of 3: 558 msec per loop > > > > So it's only 30% slower, not 260%.
FWIW, I get >python -m timeit "import inttest; inttest.int_test2(5)" 10 loops, best of 3: 367 msec per loop >\Apps\Python30\python -m timeit "import inttest; inttest.int_test2(5)" 10 loops, best of 3: 810 msec per loop That's on Windows XP, distributed binaries of Python 2.5 and 3.0a1. Processor speed: 1.7 GHz Processor type: Intel(R) Pentium(R) M processor That's 120% slower (but against very different versions). I guess this proves nothing much, apart from the fact that the test is wildly variable and as such probably not very valid :-) Paul. _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com