int vs. float in benchmark testing
Bart Nessux
bart_nessux at hotmail.com
Fri Feb 20 08:33:18 EST 2004
More information about the Python-list mailing list
Fri Feb 20 08:33:18 EST 2004
- Previous message (by thread): int vs. float in benchmark testing
- Next message (by thread): int vs. float in benchmark testing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Would adding .0 to each of the numbers below turn this into a floating
point test? Seems too easy.
def cpu_test():
import time
start = time.time()
x = 0 # 0.0
while x < 9999999: # 9999999.0
x = x + 1 # 1.0
print x
print (time.time()-start)/60
cpu_test()
- Previous message (by thread): int vs. float in benchmark testing
- Next message (by thread): int vs. float in benchmark testing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list