Answer the question
In order to leave comments, you need to log in
How to make a performance test of two versions of Python?
There are two scripts with the same logic, written in different versions of the interpreter.
How to compare their performance not "by eye", but with numbers like in timeit?
Yes, yes, you can run timeit in both interpreters, but where is the confidence that this will be an honest and objective "judging", that is, how to find out that these two timeit are the same?
What are your suggestions, gentlemen?
Answer the question
In order to leave comments, you need to log in
If you have Linux, it's as easy as shelling pears:
time python2.7 myprog.py
time python3.2 myprog.py
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question