-
Notifications
You must be signed in to change notification settings - Fork 8k
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 degradation #329
Comments
yes, it worths discussing. I am investigating. Something must be wrong. |
Yeah obviously Gin is more of a full fledged framework than echo but maybe there are some ideas that can be borrowed. Also the drastic slowdown is definitely worth investigating. |
Right now echo, should be only 10% faster. is not acceptable. |
@Slimmy performance regression fixed in my local copy
|
Gin was creating a different tree! for each route!!! |
Well then, should be an easy fix and put the performance right back on track. Good job finding it! |
what a incredible bug! when I saw it I could not believe the unit tests where passing. In fact it didn't break anything. |
@Slimmy echo faster?
only one test: BenchmarkEcho_ParamWrite |
Nice, all is back to normal :) Understandable that the unit tests didn't catch the lazy creation of the root in that case. Maybe it would be wise to run the benchmarks on a more regular interval to catch things like these. |
@Slimmy yes! in fact I am working in my own benchmarking tests. I already wrote some. They tests everything, JSON parsing, rendering, 404 handling... several middlewares |
@manucorporat Sounds promising! It would be cool to have a service that automatically would run benchmarks on each git push and report anomalies etc. Maybe I'll look into that in the future if I get some time over. |
This issue is in response to issue 88 for the micro framework echo.
First of all echo is about 8x faster than Gin in that benchmark. Second, Gin went from 69373 ns/op to 412886 ns/op, nearly 6 times slower, what happened?
Since performance is one of the main selling points for Gin I think this is worth discussing. I really like Gin but the reason I started using it was because of the performance, I assume this is the case for many others too.
Here are the relevant numbers
The text was updated successfully, but these errors were encountered: