Some simple performace tests (long)

Michael Hoffman cam.ac.uk at mh391.invalid
Sat Aug 6 09:55:40 EDT 2005


TPJ wrote:

> I decided to measure the performance of range and xrange...
> 
> The results were as follows:
> 
> n       rprint          xrprint
> 
> 10^4    0.37 s          0.34 s          <- (1)
> 10^5    4.26 s          4.25 s
> 10^6    42.57 s         42.57 s
> 10^7    431.94 s        438.32 s        <- (2)
> 
> n       rpass           xpass
> 
> 10^4    0.0012 s        0.0011 s
> 10^5    0.0220 s        0.0139 s
> 10^6    0.1463 s        0.1298 s
> 10^7    1.4818 s        1.1807 s
> 
> The values are the average times printed by tested functions.

The number of replicates and standard deviations would be useful in 
analyzing these results.
-- 
Michael Hoffman



More information about the Python-list mailing list