{"id":20105984,"url":"https://github.com/markthree/http-bench","last_synced_at":"2025-12-31T01:05:17.499Z","repository":{"id":135417385,"uuid":"603678992","full_name":"markthree/http-bench","owner":"markthree","description":"测试 deno, node 和 go 相关框架的性能","archived":false,"fork":false,"pushed_at":"2023-02-19T08:51:27.000Z","size":323,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T05:08:15.363Z","etag":null,"topics":["bench","deno","go","http","node"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/markthree.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}},"created_at":"2023-02-19T08:48:22.000Z","updated_at":"2023-03-07T02:25:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb6be903-2543-4a89-ae14-35987a2f6f01","html_url":"https://github.com/markthree/http-bench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fhttp-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fhttp-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fhttp-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fhttp-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markthree","download_url":"https://codeload.github.com/markthree/http-bench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549089,"owners_count":19980475,"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","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":["bench","deno","go","http","node"],"created_at":"2024-11-13T17:48:46.880Z","updated_at":"2025-12-31T01:05:17.462Z","avatar_url":"https://github.com/markthree.png","language":"TypeScript","readme":"# http-bench\n    \n测试 `deno`, `node` 和 `go` 相关框架的性能\n\n\u003cbr /\u003e\n\n## 标准\n\n压测由 [plow](https://github.com/six-ddc/plow) 提供支持\n\n```shell\nplow http://127.0.0.1:3000/ -c 200 -n 100000\n```\n\n- 同时刻下 200 个连接 \n- 共计 100000 个请求\n\n\u003cbr /\u003e\n\n\n## 结果\n\n| 框架  | 最小延迟 | 平均延迟 | 最大延迟 |\n| ----- | -------- | -------- | -------- |\n| deno  | 1.968    | 7.63     | 27.614   |\n| node  | 0        | 8.912    | 60.042   |\n| hono  | 0.515    | 7.208    | 25.578   |\n| gin   | 0        | 2.22     | 41.269   |\n| koa   | 0        | 11.941   | 70.326   |\n| nitro | 2.101    | 13.321   | 60.149   |\n\n平均延迟下，[gin](https://github.com/gin-gonic/gin) 的性能最好。\n\n而原生 [deno](https://github.com/denoland/deno) 和 [hono](https://github.com/honojs/hono) 对最大延迟控制得最好。\n\n![bench](./bench.png)\n\n\n\n\t\t\n\t\n\n\u003cbr /\u003e\n\n\n## License\n\nMade with [markthree](https://github.com/markthree)\n\nPublished under [MIT License](./LICENSE).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkthree%2Fhttp-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkthree%2Fhttp-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkthree%2Fhttp-bench/lists"}