Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add troubleshooting section to benchmarks guide #1485

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

MichaReiser
Copy link
Member

Summary

It took me a while to figure out why the benchmarks are extremelly flaky (and slow) on my machine.
I documented my finding in the benchmarks.md file in case someone else runs into the same problems as I

BENCHMARKS.md Outdated

### Flaky benchmarks

If you're seeing high variance in your benchmarks, then it's likely that you're running into throttling or DDoS prevention from your ISP. In that case, ISPs forcefully terminate TCP connections with a TCP reset. We believe this is due to the benchmarks making the exact same requests in a very short time (especially true for `uv`). A possible workaround is to connect to VPN to bypass your ISPs filtering mechanism.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a qualifying word here to indicate that this is about the cold benchmarks and not the warm ones? The warm benchmarks shouldn't suffer from the same problem. Maybe just say, "in your cold benchmarks" or "benchmarks that aren't using a cache."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

@zanieb zanieb enabled auto-merge (squash) February 16, 2024 14:27
@zanieb zanieb merged commit 58bc069 into main Feb 16, 2024
7 checks passed
@zanieb zanieb deleted the benchmark-troubleshooting branch February 16, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants