{"id":17207116,"url":"https://github.com/aofei/go-http-request-routing-benchmark","last_synced_at":"2026-03-02T19:36:14.379Z","repository":{"id":162291977,"uuid":"428531660","full_name":"aofei/go-http-request-routing-benchmark","owner":"aofei","description":"An HTTP request routing benchmark suite for Go.","archived":false,"fork":false,"pushed_at":"2023-04-08T15:28:03.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T22:12:50.685Z","etag":null,"topics":["bechmark","go","go-http-request-routing-benchmark","http","request","routing","suite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aofei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-16T05:42:36.000Z","updated_at":"2021-12-14T10:57:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"834aea7a-b61d-425a-ba5a-3d3ade60590e","html_url":"https://github.com/aofei/go-http-request-routing-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aofei/go-http-request-routing-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fgo-http-request-routing-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fgo-http-request-routing-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fgo-http-request-routing-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fgo-http-request-routing-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aofei","download_url":"https://codeload.github.com/aofei/go-http-request-routing-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fgo-http-request-routing-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30016524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T17:00:27.440Z","status":"ssl_error","status_checked_at":"2026-03-02T17:00:03.402Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bechmark","go","go-http-request-routing-benchmark","http","request","routing","suite"],"created_at":"2024-10-15T02:44:41.062Z","updated_at":"2026-03-02T19:36:14.371Z","avatar_url":"https://github.com/aofei.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go HTTP Request Routing Benchmark\n\nAn HTTP request routing benchmark suite for Go.\n\n## Routers\n\n* [R2](https://github.com/aofei/r2)\n* [HttpRouter](https://github.com/julienschmidt/httprouter)\n* [Chi](https://github.com/go-chi/chi)\n* [gorilla/mux](https://github.com/gorilla/mux)\n\nA new router is only eligible to be added if it:\n\n* Is designed to replace [http.ServeMux](https://pkg.go.dev/net/http#ServeMux).\n* Supports path parameters.\n* Can be fully functional without any [`http.Handler`](https://pkg.go.dev/net/http#Handler) variant.\n\n## Results\n\n```bash\n$ go version\ngo version go1.20.3 darwin/arm64\n$ go list -m all | tail -n +2\ngithub.com/aofei/r2 v0.3.3\ngithub.com/go-chi/chi/v5 v5.0.8\ngithub.com/gorilla/mux v1.8.0\ngithub.com/julienschmidt/httprouter v1.3.0\n$ go test -bench .\ngoos: darwin\ngoarch: arm64\npkg: github.com/aofei/go-http-request-routing-benchmark\nBenchmarkStatic_R2-8                      236452              5084 ns/op               0 B/op          0 allocs/op\nBenchmarkStatic_HttpRouter-8              185234              5618 ns/op               0 B/op          0 allocs/op\nBenchmarkStatic_Chi-8                      35596             33717 ns/op           47741 B/op        314 allocs/op\nBenchmarkStatic_GorillaMux-8                3904            306781 ns/op          113171 B/op       1107 allocs/op\nBenchmarkGitHubAPI_R2-8                    54349             22111 ns/op            4417 B/op        184 allocs/op\nBenchmarkGitHubAPI_HttpRouter-8            28010             43961 ns/op           75360 B/op        736 allocs/op\nBenchmarkGitHubAPI_Chi-8                   20300             58942 ns/op           67203 B/op        442 allocs/op\nBenchmarkGitHubAPI_GorillaMux-8              562           2118916 ns/op          218188 B/op       1731 allocs/op\nBenchmarkGPlusAPI_R2-8                   1000000              1023 ns/op             264 B/op         11 allocs/op\nBenchmarkGPlusAPI_HttpRouter-8            546333              2195 ns/op            4248 B/op         44 allocs/op\nBenchmarkGPlusAPI_Chi-8                   432822              2780 ns/op            3953 B/op         26 allocs/op\nBenchmarkGPlusAPI_GorillaMux-8             74625             16112 ns/op           12788 B/op        102 allocs/op\nBenchmarkParseAPI_R2-8                    764920              1496 ns/op             384 B/op         16 allocs/op\nBenchmarkParseAPI_HttpRouter-8            373254              3322 ns/op            5888 B/op         64 allocs/op\nBenchmarkParseAPI_Chi-8                   226174              5345 ns/op            7906 B/op         52 allocs/op\nBenchmarkParseAPI_GorillaMux-8             41613             28922 ns/op           23639 B/op        198 allocs/op\nPASS\nok      github.com/aofei/go-http-request-routing-benchmark      22.602s\n```\n\n## Community\n\nIf you want to discuss Go HTTP Request Routing Benchmark, or ask questions about\nit, simply post questions or ideas\n[here](https://github.com/aofei/go-http-request-routing-benchmark/issues).\n\n## Contributing\n\nIf you want to help build Go HTTP Request Routing Benchmark, simply follow\n[this](https://github.com/aofei/go-http-request-routing-benchmark/wiki/Contributing)\nto send pull requests\n[here](https://github.com/aofei/go-http-request-routing-benchmark/pulls).\n\n## License\n\nThis project is licensed under the MIT License.\n\nLicense can be found [here](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faofei%2Fgo-http-request-routing-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faofei%2Fgo-http-request-routing-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faofei%2Fgo-http-request-routing-benchmark/lists"}