python 3.3 ,2.7 and 2.6 - benchmark inconsistent results. how fix that?
I use this python scripts:
python2.6 and 2.7
for i in xrange(1000000):print i
python3.3
for i in range(1000000):print(i)
Results:
python 2.7
real 1m15.973s
user 0m3.392s
sys 0m6.384s
python 2.6
real 1m15.860s
user 0m3.064s
sys 0m6.296s
With python 3.3 I test the script many times and I receive this diff of
running .
python 3.3
real 1m34.235s
user 0m10.668s
sys 0m8.988s
real 1m29.431s
user 0m10.304s
sys 0m9.512s
real 1m12.528s
user 0m10.568s
sys 0m9.004s
real 1m4.193s
user 0m9.688s
sys 0m8.812s
real 1m18.332s
user 0m9.728s
sys 0m9.132s
After that I try again python 2.6 and I got this:
real 0m45.003s
user 0m3.056s
sys 0m5.956s
What is the best way to benchmark 2 python scripts 3.3 and 2.7 (or 2.6).
No comments:
Post a Comment