STINNER Victor added the comment:

I tested on Linux.

(1) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 -s "import sys; 
sys.modules.clear()" -- "import enum"; done

(shortest timing)

Python 3.4: 6.93 msec
Python 3.6: 7.05 msec (+2%)


(2) for i in `seq 5`; do ./python -I -m timeit "import enum"; done

Python 3.4: 0.331 usec
Python 3.6: 0.341 usec (+%3)

These numbers are nanoseconds, it's too short to run a real benchmark.


(3) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 "import enum"; done

Python 3.4: 801 usec
Python 3.6: 774 usec (-3%)


Sorry, I don't see major differences like you showed. Can you explain exactly 
how to reproduce them? Exact Python version? OS?

I used the development branches (branch 3.4 and branch default).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25159>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to