You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The benchmark on the README was done four years ago, then I test the benchmark on my laptop with the same code, for comparing performance between the newest version of echo and gin, the results are quite different. Echo version: 4.12.0 Gin version: 1.10.0 Results:
goos: windows
goarch: amd64
pkg: test
cpu: AMD Ryzen 7 6800H with Radeon Graphics
=== RUN BenchmarkEchoStatic
BenchmarkEchoStatic
BenchmarkEchoStatic-16
45760 25782 ns/op 1992 B/op 157 allocs/op
=== RUN BenchmarkEchoGitHubAPI
BenchmarkEchoGitHubAPI
BenchmarkEchoGitHubAPI-16
31821 37144 ns/op 2685 B/op 203 allocs/op
=== RUN BenchmarkEchoGplusAPI
BenchmarkEchoGplusAPI
BenchmarkEchoGplusAPI-16
615488 2002 ns/op 158 B/op 13 allocs/op
=== RUN BenchmarkEchoParseAPI
BenchmarkEchoParseAPI
BenchmarkEchoParseAPI-16
335480 3532 ns/op 408 B/op 26 allocs/op
=== RUN BenchmarkGinStatic
BenchmarkGinStatic
BenchmarkGinStatic-16
62889 18530 ns/op 8605 B/op 157 allocs/op
=== RUN BenchmarkGinGitHubAPI
BenchmarkGinGitHubAPI
BenchmarkGinGitHubAPI-16
42006 26764 ns/op 11346 B/op 203 allocs/op
=== RUN BenchmarkGinGplusAPI
BenchmarkGinGplusAPI
BenchmarkGinGplusAPI-16
821253 1409 ns/op 705 B/op 13 allocs/op
=== RUN BenchmarkGinParseAPI
BenchmarkGinParseAPI
BenchmarkGinParseAPI-16
449643 2612 ns/op 1397 B/op 26 allocs/op
I'm not sure what the reason is for the performance gap, but it's obviously a performance disadvantage now.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The benchmark on the README was done four years ago, then I test the benchmark on my laptop with the same code, for comparing performance between the newest version of echo and gin, the results are quite different.
Echo version: 4.12.0
Gin version: 1.10.0
Results:
I'm not sure what the reason is for the performance gap, but it's obviously a performance disadvantage now.
Beta Was this translation helpful? Give feedback.
All reactions