echo
echo copied to clipboard
About V5 Benchmarks
About V5 Benchmarks
Could you be more specific?
https://github.com/labstack/echo#benchmarks
about v5 vs v4 or gin
I guess you'd like to see updated benchmarks on the V5 branch There is some discussion going on about benchmarks in https://github.com/labstack/echo/discussions/2143
When V5 is released the benchmarks will be updated. For now you can check pull requests for the V5 branch, which include benchmarks as part of the automated tests or fork https://github.com/vishr/web-framework-benchmark and add the versions you need and benchmark yourself.
Ok I have to admit I was interested too in numbers :)
Forked to https://github.com/lammel/web-framework-benchmark to use current versions for Gin and Echo v4.
Tested using go1.19.3 linux/amd64
Benchmarks using Echo v4:
Version:
github.com/gin-gonic/gin v1.8.1
github.com/labstack/echo/v4 v4.9.1
sh# go test -bench=.
goos: linux
goarch: amd64
pkg: github.com/lammel/web-framework-benchmark
cpu: AMD Ryzen 7 2700X Eight-Core Processor
BenchmarkEchoStatic-16 31438 36312 ns/op 2328 B/op 157 allocs/op
BenchmarkEchoGitHubAPI-16 20865 53327 ns/op 3242 B/op 203 allocs/op
BenchmarkEchoGplusAPI-16 373552 2742 ns/op 193 B/op 13 allocs/op
BenchmarkEchoParseAPI-16 231984 5056 ns/op 352 B/op 26 allocs/op
BenchmarkGinStatic-16 24606 44174 ns/op 8223 B/op 157 allocs/op
BenchmarkGinGitHubAPI-16 17478 64280 ns/op 10714 B/op 203 allocs/op
BenchmarkGinGplusAPI-16 325278 3491 ns/op 727 B/op 13 allocs/op
BenchmarkGinParseAPI-16 180774 6489 ns/op 1434 B/op 26 allocs/op
PASS
ok github.com/lammel/web-framework-benchmark 14.254s
Benchmarks using Echo v5 (v5_alpha branch):
Version:
github.com/gin-gonic/gin v1.8.1
github.com/labstack/echo/v4 (locally replaced with branch v5_alpha at 7402266)
sh# go test -bench=.
goos: linux
goarch: amd64
pkg: github.com/lammel/web-framework-benchmark
cpu: AMD Ryzen 7 2700X Eight-Core Processor
BenchmarkEchoStatic-16 29661 38733 ns/op 2392 B/op 157 allocs/op
BenchmarkEchoGitHubAPI-16 20264 56995 ns/op 2465 B/op 203 allocs/op
BenchmarkEchoGplusAPI-16 341821 3153 ns/op 202 B/op 13 allocs/op
BenchmarkEchoParseAPI-16 211303 5759 ns/op 366 B/op 26 allocs/op
BenchmarkGinStatic-16 24391 45088 ns/op 8230 B/op 157 allocs/op
BenchmarkGinGitHubAPI-16 17371 63466 ns/op 10720 B/op 203 allocs/op
BenchmarkGinGplusAPI-16 270980 3750 ns/op 686 B/op 13 allocs/op
BenchmarkGinParseAPI-16 175144 6791 ns/op 1440 B/op 26 allocs/op
PASS
ok github.com/lammel/web-framework-benchmark 13.381s