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

Replace default http router #6

Merged
merged 1 commit into from
Mar 11, 2017
Merged

Replace default http router #6

merged 1 commit into from
Mar 11, 2017

Conversation

issmirnov
Copy link
Owner

Using julienschmidt/httprouter for future performance enhancements.

Trying to hit 100k+ qps, for the fun of it.

Using julienschmidt/httprouter for future performance enhancements.
@issmirnov issmirnov self-assigned this Mar 9, 2017
@issmirnov
Copy link
Owner Author

This is totally worth it. Benchmarked with wrk2, using ./wrk -t2 -c10 -d30s -R500000 http://127.0.0.1:8989/h

  • master: ~130,000 requests/sec
  • with this PR: ~160,000 requests/sec

That's a solid 23% gain.

Thank you @julienschmidt for a great framework!

@issmirnov issmirnov merged commit f815861 into master Mar 11, 2017
@issmirnov issmirnov deleted the router branch March 11, 2017 23:17
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.

1 participant