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

Lesson 211 - Improvements for Caddy #341

Open
dunglas opened this issue Nov 4, 2024 · 1 comment
Open

Lesson 211 - Improvements for Caddy #341

dunglas opened this issue Nov 4, 2024 · 1 comment

Comments

@dunglas
Copy link

dunglas commented Nov 4, 2024

For a more fair comparison, you should set the GOGC environment variable to off to disable Go's garbage collector. Stress tests and benchmarks will trigger a lot of collections that will occur very differently (when the server is idle on the happy path) when handling real-life traffic, which tends to distort comparisons (it's also possible to change the ratio instead).

If you're using containers with a small amount of available memory, you should also GOMEMLIMIT, this can dramatically improve performance.

More info:

@antonputra
Copy link
Owner

Thank you! I'll try it out, actually i deploy both on VMs, using m7a.large instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants