Fix virtual environment details in knot_benchmark#13228
Conversation
--venv-path for pyright in knot_benchmark--venvpath for pyright in knot_benchmark
|
I think this is a fairer comparison between mypy/pyright/redknot... but I'm still seeing lots of errors regarding missing imports from both mypy and pyright if I run Mypy: Pyright: So something else may be going wrong somewhere... |
|
Thanks. I was just about to revert the commit because I don't see any performance improvements by just using the max number of threads (but e.g. 4 threads is faster on my machine for black).
This is what I pointed out in the original PR summary and asked for help:
|
Yeah, it's odd! I checked the output of the tools at the time and I don't remember seeing anything like this. I remember everything looking similar to what I'd expect at the time. I'm looking into it now. Adding the |
|
Yeah it's not that all packages are missing, just some. The packages that are missing are also missing in the dependencies arrays (which I took from mypy-primer) |
In the logs I posted above, I see mypy errors about not being able to resolve ruff/scripts/knot_benchmark/src/benchmark/projects.py Lines 96 to 109 in c2aac5f |
|
This is the only error that I get when running mypy over black |
--venvpath for pyright in knot_benchmarkknot_benchmark
|
(We debugged this offline -- it seems like something changed in uv between v0.3 and v0.4? We're not sure what, but specifying |
CodSpeed Performance ReportMerging #13228 will degrade performances by 4.45%Comparing Summary
Benchmarks breakdown
|
Following #13227, pyright is looking for a virtual environment in a directory called '--threads', and no such directory exists. This PR fixes that, which slows pyright down again when checking black from 251.9ms to 1.751s on my machine