Skip to content

bench: add four-framework HTTP overhead benchmarks - #225

Merged
yourtion merged 14 commits into
mainfrom
bench/http-overhead
Oct 27, 2026
Merged

yourtion merged 14 commits into
mainfrom
bench/http-overhead

Conversation

@yourtion

@yourtion yourtion commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

新增 Express、Koa、@leizm/web、H3 的真实 HTTP 接入开销对照,比较原生路由、同等 Zod 校验和 erest,输出吞吐、延迟分位数、每请求 CPU、内存快照与轮间波动。支持 macOS/Linux,报告可由本地生成的 JSON 重新生成。

本 PR 只包含五个 benchmark 脚本、使用说明和结果忽略规则。评测 JSON/CSV/HTML、CPU/堆剖析文件和优化实验均不随工具提交。

验证:

  • Apple M2 / Node.js 24.22.1 完成四框架、50 并发 POST、每组 7 轮,共 84 次采样,HTTP/网络错误为 0;临时结果已删除。
  • 删除前已核对采样脚本 SHA-256,并成功重新生成 HTML/CSV/JSON 汇总。
  • 最终文件树与确认过的 24c91d7 一致;待最新 CI 完成后合入。

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.61%. Comparing base (a822012) to head (63f3c8c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #225   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files          29       29           
  Lines        3150     3150           
  Branches     1025     1025           
=======================================
  Hits         3138     3138           
  Misses         12       12           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yourtion
yourtion marked this pull request as ready for review October 27, 2026 16:11
@yourtion
yourtion merged commit 012dd82 into main Oct 27, 2026
9 checks passed
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