473,503 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Thank you developers for 2.3

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)

david lees

Jul 18 '05 #1
6 1370
On Wed, 30 Jul 2003 05:35:02 GMT, David Lees
<ab***************@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

Hi!

By the way: What was/is the speed with 2.1.x on the same system?

Cheers,

Tino
Jul 18 '05 #2
"David Lees"
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)

david lees


You must really trust us.
The benchmark compares the speed
but doesn't check to see if the answers are the same ;-)
Raymond Hettinger
Jul 18 '05 #3
On Wed, 30 Jul 2003 08:21:09 +0200, Tino Lange wrote:
On Wed, 30 Jul 2003 05:35:02 GMT, David Lees
<ab***************@verizon.net> wrote:
....
2.3 5.04 sec
version 2.2.3 9.77 sec
...
By the way: What was/is the speed with 2.1.x on the same system?


On 2.1.3 speedTest doesn't work . It gives OverflowError: integer
addition . It 's because in that version integer aren't converted
into Long Int when necessary .

....
t1 = time.time()
k = 0L
....
for j in xrange(n):
for i in xrange(n):
k += i + j
t1 = time.time()
return t1 - t0
Jul 18 '05 #4
| You must really trust us.
| The benchmark compares the speed
| but doesn't check to see if the answers are the same

Python 2.2.1 Python 2.3b1

k ..... 26991000000 k ..... 26991000000

et .... 108.370000005 et .... 51.4100000858

Answers look OK and 2x speed improvement
seems to prevail for slower processors as well ....

Using Win98 @ 250 MHz ....

--
Cousin Stanley
Human Being
Phoenix, Arizona
Jul 18 '05 #5
In article <aO*****************@nwrddc02.gnilink.net>,
David Lees <ab***************@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 (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

This is Python. We don't care much about theory, except where it intersects
with useful practice. --Aahz
Jul 18 '05 #6
Added initialization to a long and printout of both time and result.
Looks like faith was justified, but good point Raymond.

David Lees
------------
import time

def speedTest(N):
t1 = time.time()
k = 0L
for i in xrange(N):
for j in xrange(N):
k += (i+j)

t2 = time.time()
return t2-t1,k

print speedTest(3000)
---------
Python 2.3
(5.406999945640564, 26991000000L)
Python 2.2.3 (10.465000033378601, 26991000000L)


Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
8532
by: larry | last post by:
Hi. Our company has about 20 application developers/architects and one certified dba. Our developers both design the databases and build the applications. We're confused about what permissions a...
3
2092
by: sea | last post by:
In order to have System Administrator privileges for the DB2 database, is it necessary to have Administrative access (log on as administrator) on the computer where DB2 is installed? Or, if a...
132
5591
by: Kevin | last post by:
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at...
7
1434
by: Fresh Air Rider | last post by:
Hi I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by 70%. Surely this is going to de-skill or dumb down the developers task and open up the task to less qualified and...
57
3744
by: TC | last post by:
I'd like to open a discussion about the state of the industry. For the past year, I've been unable to find competent Access developers available for hire. I'm worried about that. I think there's...
0
1806
by: melledge | last post by:
Ajax Developers' Day to Kick Off XTech 2006 Conference Industry experts offer insight into next generation of the Web ALEXANDRIA, VIRGINIA, USA - April 25, 2006 - In response to the rapidly...
2
1100
by: Neo | last post by:
why Microsoft Developers not like others developers (Java Dev, Linux Dev, etc)? the me without this reason of not same platform. Why they not like others?
14
1156
by: Méta-MCI | last post by:
Hi! (***sorry for my approximative english***) A few months ago, I needed a console, under Windows. After several research, I selected the console of EffBot. Thank you very much,...
20
1817
by: raylopez99 | last post by:
Dvorak is always interesting, albeit speculative. What hidden gem has he found in Vista that helps developers? It can't be .NET/CLI, that's been out forever. RL Vista rollout hides reality...
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.