Skip to content
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

Add golang echo benchmark #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ezioruan
Copy link

@ezioruan ezioruan commented Feb 2, 2017

Go benchmark using echo which was created for same purpose as japronto was.

https://www.techempower.com/benchmarks/#section=data-r13&hw=ph&test=plaintext

from the web framework benchmarks
seems go-echo is the fastest web framework in golang

@heppu
Copy link
Contributor

heppu commented Feb 2, 2017

Just ran the tests on my computer got these results:

Go echo
Requests/sec: 85110.81
Transfer/sec: 10.47MB

Go net/http
Requests/sec: 95874.63
Transfer/sec: 11.79MB

Go fasthttp
Requests/sec: 447240.87
Transfer/sec: 62.70MB

Japronto
Requests/sec: 541733.61
Transfer/sec: 47.53MB

So echo is slowest since it doesn't use fasthttp. It is also slower than to pure stdlib implementation since it only adds layers on top of it. If we would benchmark real life use case like normal web page usage then it would do quite good for web framework. But then if you want fast web framework for golang you might wanna check iris which used fasthttp last time I checked.

@squeaky-pl
Copy link
Owner

@heppu thanks for doing the number for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants