[issue41972] bytes.find consistently hangs in a particular scenario
Dennis Sweeney
report at bugs.python.org
Fri Nov 6 15:31:37 EST 2020
Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:
I used the following script, and the raw results are attached.
import pyperf
runner = pyperf.Runner()
ms = [12, 16, 24, 32, 48, 64, 96, 128,
192, 256, 384, 512, 768, 1024, 1536]
ns = [2000, 3000, 4000, 6000, 8000,
12000, 16000, 24000, 32000, 48000,
64000, 96000]
for n, m in product(ns, ms):
runner.timeit(f"needle={m}, haystack={n}",
setup="needle = zipf_string(m); haystack = zipf_string(n)",
stmt="needle in haystack",
globals=locals() | globals())
----------
Added file: https://bugs.python.org/file49578/length_benchmarks.txt
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41972>
_______________________________________
More information about the Python-bugs-list
mailing list