Message380474
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()) |
|
Date |
User |
Action |
Args |
2020-11-06 20:31:37 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney, gvanrossum, tim.peters, gregory.p.smith, vstinner, taleinat, pmpp, serhiy.storchaka, josh.r, ammar2, corona10, Zeturic |
2020-11-06 20:31:37 | Dennis Sweeney | set | messageid: <1604694697.59.0.0472805298394.issue41972@roundup.psfhosted.org> |
2020-11-06 20:31:37 | Dennis Sweeney | link | issue41972 messages |
2020-11-06 20:31:37 | Dennis Sweeney | create | |
|