Skip to content

chore(benchmark): add app.fetch() overhead benchmark#5117

Merged
yusukebe merged 2 commits into
mainfrom
chore/bench-fetch-overhead
Jul 15, 2026
Merged

chore(benchmark): add app.fetch() overhead benchmark#5117
yusukebe merged 2 commits into
mainfrom
chore/bench-fetch-overhead

Conversation

@yusukebe

@yusukebe yusukebe commented Jul 15, 2026

Copy link
Copy Markdown
Member

These benchmark scripts enable measuring the performance of app.fetch(). This means it does not cover the HTTP layer and enables strict measurement of the application handler's speed.

compare.sh can run the benchmark multiple times to avoid inconsistency with order or conditions.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@github-actions

Copy link
Copy Markdown

HTTP Performance Benchmark

Framework Runtime Average Ping Query Body
hono (origin/main) bun 47,023.05 57,901.90 45,436.94 37,730.31
hono (current) bun 45,014.01 54,079.68 43,707.56 37,254.78
Change -4.27% -6.60% -3.81% -1.26%

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.08%. Comparing base (fb9d7bf) to head (ff4f80d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5117   +/-   ##
=======================================
  Coverage   79.08%   79.08%           
=======================================
  Files         154      154           
  Lines       10764    10764           
  Branches     2254     2254           
=======================================
  Hits         8513     8513           
  Misses       2251     2251           

☔ 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.

@yusukebe yusukebe merged commit c285f9a into main Jul 15, 2026
20 checks passed
@yusukebe yusukebe deleted the chore/bench-fetch-overhead branch July 15, 2026 02:01
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