[issue25159] Regression in time to import a module
STINNER Victor
report at bugs.python.org
Tue Sep 22 12:27:09 CEST 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue25159>
_______________________________________
More information about the Python-bugs-list
mailing list