[issue45367] Specialize BINARY_MULTIPLY

Ken Jin report at bugs.python.org
Tue Oct 5 09:25:51 EDT 2021


Ken Jin <kenjin4096 at gmail.com> added the comment:

> (Windows doesn't want to install greenlet for pyperformance)

I had the *exact* same issues, I eventually found a workaround for it after many hours spent guessing.

Initially, setuptools complained that I needed MSVC++ 14.0 or later (even after I had the latest one installed). I found that for some strange reason, *only* 14.0 worked, 14.2x etc. don't. After installing MSVC 14.0, there was then some strange complaint about missing some .exe/.dll. Searching that entire error message led me to a result on StackOverflow advising copying said files from the Windows SDK in Visual Studio over to the MSVC 14.0 folder. This finally allowed greenlet to compile. I've since lost the exact SO links, but I hope this leads you somewhere.

Anyways, I don't recommend benchmarking on Windows for stable results (trust me, I've tried ;-). `pyperf system tune` doesn't work on Windows. This leads to very inconsistent results unless you manually disable turbo boost, set core affinities, etc. Also, PGO for _PyEvalFrameDefaultEx might be broken on Windows on the main branch (see issue45116).

Eventually I gave up and just used Linux for stable benchmarking. pyperformance `compile_all` also works properly there, which allows you to automate your benchmarks https://pyperformance.readthedocs.io/usage.html#compile-python-to-run-benchmarks

PS. are your numbers with PGO and LTO? If so, they're spectacular!

----------
nosy: +kj

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45367>
_______________________________________


More information about the Python-bugs-list mailing list