Skip to content

Is Echo is more efficient than Gin? #2143

Answered by aldas
Gumichocopengin8 asked this question in Q&A
Discussion options

You must be logged in to vote

You should take this with grain of salt. Every library claims that it is the best. Looking from Gin repo its seems that their benchmarks are also quite old (from May 2020 https://github.com/gin-gonic/gin/blob/master/BENCHMARKS.md)

NB: these benchmarks hardly ever include middlewares and does not represent real world use cases.

I have run same tests with latest Echo and Gin and result is https://github.com/aldas/web-framework-benchmark/actions/runs/2017913749

or from my own machine:

goos: linux
goarch: amd64
pkg: github.com/vishr/web-framework-benchmark
cpu: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
BenchmarkEchoStatic-6              38052             31219 ns/op            2169 B/op        …

Replies: 6 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@aldas
Comment options

Answer selected by Gumichocopengin8
Comment options

You must be logged in to vote
1 reply
@aldas
Comment options

Comment options

You must be logged in to vote
2 replies
@aldas
Comment options

@Gumichocopengin8
Comment options

Comment options

You must be logged in to vote
2 replies
@vuhoanghiep1993
Comment options

@Faridalim
Comment options

Comment options

You must be logged in to vote
2 replies
@jamesli2021
Comment options

@aldas
Comment options

Comment options

You must be logged in to vote
1 reply
@Faridalim
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants