{"id":30065744,"url":"https://github.com/smhmayboudi/go-routers-benchmark","last_synced_at":"2025-08-08T06:21:48.013Z","repository":{"id":223356802,"uuid":"760092476","full_name":"smhmayboudi/go-routers-benchmark","owner":"smhmayboudi","description":"very simple benchmark for routers in go version go1.22.2 darwin/arm64","archived":false,"fork":false,"pushed_at":"2024-04-13T21:02:09.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-13T23:59:41.136Z","etag":null,"topics":["benchmark","chi","chi-framework","echo","echo-framework","gin","gin-framework","go","golang","kmux","ksmux","router"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smhmayboudi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-19T19:14:40.000Z","updated_at":"2024-04-22T03:48:02.412Z","dependencies_parsed_at":"2024-04-22T03:47:57.541Z","dependency_job_id":"0fe7ff7c-4fde-419b-afd2-4afcca520f08","html_url":"https://github.com/smhmayboudi/go-routers-benchmark","commit_stats":null,"previous_names":["smhmayboudi/go-routers-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smhmayboudi/go-routers-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smhmayboudi%2Fgo-routers-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smhmayboudi%2Fgo-routers-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smhmayboudi%2Fgo-routers-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smhmayboudi%2Fgo-routers-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smhmayboudi","download_url":"https://codeload.github.com/smhmayboudi/go-routers-benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smhmayboudi%2Fgo-routers-benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269374167,"owners_count":24406538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["benchmark","chi","chi-framework","echo","echo-framework","gin","gin-framework","go","golang","kmux","ksmux","router"],"created_at":"2025-08-08T06:21:45.006Z","updated_at":"2025-08-08T06:21:47.992Z","avatar_url":"https://github.com/smhmayboudi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-routers-benchmark\n\n```shell\ngo test -benchmem -run=^$ -coverprofile=$(mktemp -t go-routers-benchmark) -bench . github.com/smhmayboudi/go-routers-benchmark\n```\n\n```shell\ngoos: darwin\ngoarch: arm64\npkg: github.com/smhmayboudi/go-routers-benchmark\n\nBenchmarkBunRouter-8              \t29811811\t        40.16 ns/op\t      18 B/op\t       0 allocs/op\nBenchmarkChi-8                    \t 7374037\t       147.2 ns/op\t     359 B/op\t       3 allocs/op\nBenchmarkEcho-8                   \t12793647\t        94.12 ns/op\t      18 B/op\t       1 allocs/op\nBenchmarkFiber-8                  \t  779364\t      1310 ns/op\t    2109 B/op\t      20 allocs/op\nBenchmarkFlow-8                   \t 5222136\t       216.2 ns/op\t     412 B/op\t       2 allocs/op\nBenchmarkGin-8                    \t15939076\t        73.54 ns/op\t      64 B/op\t       1 allocs/op\nBenchmarkGorilla-8                \t 2711346\t       418.8 ns/op\t     796 B/op\t       7 allocs/op\nBenchmarkHttpRouter-8             \t31583275\t        38.88 ns/op\t      16 B/op\t       0 allocs/op\nBenchmarkKmux-8                   \t 9128037\t       127.6 ns/op\t      86 B/op\t       3 allocs/op\nBenchmarkKsmux-8                  \t26112240\t        44.81 ns/op\t      18 B/op\t       1 allocs/op\nBenchmarkNetHTTP-8                \t 3891087\t       311.3 ns/op\t      22 B/op\t       1 allocs/op\n\nBenchmarkBunRouterWith1Param-8    \t13290403\t        90.96 ns/op\t      56 B/op\t       1 allocs/op\nBenchmarkChiWith1Param-8          \t 4777564\t       237.3 ns/op\t     412 B/op\t       5 allocs/op\nBenchmarkEchoWith1Param-8         \t 8262081\t       143.7 ns/op\t      80 B/op\t       3 allocs/op\nBenchmarkFiberWith1Param-8        \t 1042105\t      1149 ns/op\t    2077 B/op\t      22 allocs/op\nBenchmarkFlowWith1Param-8         \t 4493044\t       259.9 ns/op\t     477 B/op\t       7 allocs/op\nBenchmarkGinWith1Param-8          \t 7657814\t       153.8 ns/op\t     115 B/op\t       3 allocs/op\nBenchmarkGorillaWith1Param-8      \t 2011726\t       582.7 ns/op\t    1137 B/op\t       9 allocs/op\nBenchmarkHttpRouterWith1Param-8   \t12596600\t        95.34 ns/op\t      90 B/op\t       2 allocs/op\nBenchmarkKmuxWith1Param-8         \t 5750445\t       208.2 ns/op\t     103 B/op\t       5 allocs/op\nBenchmarkKsmuxWith1Param-8        \t 9817094\t       120.7 ns/op\t      75 B/op\t       3 allocs/op\nBenchmarkNetHTTPWith1Param-8      \t 1798729\t       669.8 ns/op\t     440 B/op\t      11 allocs/op\n\nBenchmarkBunRouterWith2Param-8    \t 7257954\t       161.8 ns/op\t      68 B/op\t       2 allocs/op\nBenchmarkChiWith2Param-8          \t 3841756\t       304.9 ns/op\t     485 B/op\t       6 allocs/op\nBenchmarkEchoWith2Param-8         \t 5963230\t       199.5 ns/op\t     125 B/op\t       4 allocs/op\nBenchmarkFiberWith2Param-8        \t  716545\t      1399 ns/op\t    2217 B/op\t      26 allocs/op\nBenchmarkFlowWith2Param-8         \t 2812090\t       419.4 ns/op\t     623 B/op\t      12 allocs/op\nBenchmarkGinWith2Param-8          \t 5622560\t       215.2 ns/op\t     159 B/op\t       4 allocs/op\nBenchmarkGorillaWith2Param-8      \t 1467932\t       812.6 ns/op\t    1182 B/op\t      10 allocs/op\nBenchmarkHttpRouterWith2Param-8   \t 7979810\t       149.2 ns/op\t     163 B/op\t       3 allocs/op\nBenchmarkKmuxWith2Param-8         \t 4535203\t       263.8 ns/op\t     179 B/op\t       6 allocs/op\nBenchmarkKsmuxWith2Param-8        \t 6765435\t       173.9 ns/op\t     119 B/op\t       4 allocs/op\nBenchmarkNetHTTPWith2Param-8      \t 1354952\t       889.4 ns/op\t     536 B/op\t      13 allocs/op\n\nBenchmarkBunRouterWith5Param-8    \t 2700884\t       442.3 ns/op\t     179 B/op\t       5 allocs/op\nBenchmarkChiWith5Param-8          \t 2125104\t       561.0 ns/op\t     638 B/op\t       9 allocs/op\nBenchmarkEchoWith5Param-8         \t 3123518\t       381.0 ns/op\t     261 B/op\t       7 allocs/op\nBenchmarkFiberWith5Param-8        \t  710704\t      1410 ns/op\t    2218 B/op\t      26 allocs/op\nBenchmarkFlowWith5Param-8         \t 1302312\t       920.0 ns/op\t    1063 B/op\t      27 allocs/op\nBenchmarkGinWith5Param-8          \t 3070933\t       393.8 ns/op\t     295 B/op\t       7 allocs/op\nBenchmarkGorillaWith5Param-8      \t  685748\t      1560 ns/op\t    1330 B/op\t      13 allocs/op\nBenchmarkHttpRouterWith5Param-8   \t 3619641\t       327.1 ns/op\t     314 B/op\t       6 allocs/op\nBenchmarkKmuxWith5Param-8         \t 2735426\t       434.8 ns/op\t     338 B/op\t       9 allocs/op\nBenchmarkKsmuxWith5Param-8        \t 3515283\t       339.8 ns/op\t     252 B/op\t       7 allocs/op\nBenchmarkNetHTTPWith5Param-8      \t  801085\t      1466 ns/op\t    1016 B/op\t      17 allocs/op\n\nPASS\ncoverage: 0.0% of statements\n```\n\n## References\n\n- https://github.com/kamalshkeir/bench-go-routers\n- https://github.com/mingrammer/go-web-framework-stars\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmhmayboudi%2Fgo-routers-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmhmayboudi%2Fgo-routers-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmhmayboudi%2Fgo-routers-benchmark/lists"}