Run mypy the correct number of times#19
Conversation
mypy the correct number of times
|
My guess is that we need to run the benchmark an extra time in order to stabilize mypy's caches, although maybe we should be passing in some sort of "no cache" parameter instead.
Maybe keep the |
|
The comment says it's only ignoring the first run, but it's really ignoring the first two. I agree that ignoring the first one is desirable. I think it's just an off-by-one error in the conditional, though. Ignoring two runs seems excessive. |
|
This solution makes sense. I'll run an A:A test on our infrastructure just to confirm it helps (I think it should). We probably should rename it again. |
|
@mdboom, do you think we could get this in? |
Currently, we run the
mypy2benchmarkloopstimes, but reportloops - 2results. This seems to break some ofpyperformance's assumptions, and results in weird artifacts in the output. This changes the benchmarking loop to runloops + 1times and reportloopsresults, as expected.I've confirmed locally that this seems to fix the weirdness.
pyperformanceoutput before:Details
After:
Details
CC @mdboom (when you return). Does this mean that the benchmark needs to be renamed again?