[issue28754] Argument Clinic for bisect.bisect_left

Raymond Hettinger report at bugs.python.org
Sat Nov 26 05:19:50 EST 2016


Raymond Hettinger added the comment:

Curiously, this patch gives about a 10% to 15% speedup.  Any sense of how that improvement arises?

$ py3.7 -m timeit -s 'from bisect import bisect' -s 'a=list(range(100))' 'bisect(a, 10)'

229 nsec     # Clang baseline 
202 nsec     # Clang with patch

189 nsec     # GCC-6 baseline
156 nsec     # Gcc-6 with patch

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28754>
_______________________________________


More information about the Python-bugs-list mailing list