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
Performance issue #331
Comments
Anyway, the tests does not looks the same: httpRouter was returning non-200
while Gin, was responding good 200 responses... |
Also, I can not see the code, but a quick analytics shows that the transfer speed is almost the same: 10.88MB vs 10.36MB. while the number of requests is completely different. That means: you are serving completely different content. Your performance analysis does not look good.
|
@wsantos
otherwise they is a problem that should be fixed!! |
Keep in mind the dev / production mode that everyone keeps forgetting about :) |
@manucorporat here it is the corrected benchmark for
Gin is faster than httprouter without any middleware, thank you @manucorporat. |
Awesome work btw ! I can't wait to see the Zero Allocation Router. |
hahaha nice!! also! @nazwa gave you a good advice. switch to release mode when deploying in production. it can be done programatically or through the environment variable (GIN_MODE) |
@wsantos The Zero Allocation Router is already working in master!
see the number of allocations! in practice, it will still allocate some memory because the sync.pools are discarted in each garbage collection. But do not worry too much! |
I was searching a framework to make the code more clean, But for me this added to much overhead
GOMAXPROCS=8 go run server.go
regards.
The text was updated successfully, but these errors were encountered: