Thank you developers for 2.3
Aahz
aahz at pythoncraft.com
Wed Jul 30 10:02:13 EDT 2003
In article <aOIVa.8149$yv1.7974 at nwrddc02.gnilink.net>,
David Lees <abcdebl2nonspammy at verizon.net> wrote:
>
>Flawless install and it ran my very simple minded (try not to laugh)
>nested loop integer arithmetic benchmark twice as fast as 2.2.3
>version 2.3 5.04 sec
>version 2.2.3 9.77 sec
>
>import time
>
>def speedTest(N):
> t1 = time.time()
> k = 0
> for i in xrange(N):
> for j in xrange(N):
> k += (i+j)
>
> t2 = time.time()
> return t2-t1
>
>print speedTest(3000)
That primarily tests the speed of the warnings module. Test starting
with 0L instead.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
This is Python. We don't care much about theory, except where it intersects
with useful practice. --Aahz
More information about the Python-list
mailing list