Skip to content

chore: add better benchmarks - #391

Merged
yusukebe merged 2 commits into
honojs:mainfrom
BlankParticle:chore/add-better-benchmarks
Aug 16, 2026
Merged

chore: add better benchmarks#391
yusukebe merged 2 commits into
honojs:mainfrom
BlankParticle:chore/add-better-benchmarks

Conversation

@BlankParticle

@BlankParticle BlankParticle commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Added a better benchmarks with extra cases inspired by srvx's nodejs compatibly suite, its also using oha instead of bombardier as srvx does. It uses more runs and measures in random order to account for random noise/activity, a full run takes about 10 minutes, --update automatically update the benchmark readme, there is a command provided to quickly smoke test the benchmark. We compare @hono/node-server (npm and local) and srvx against a baseline node:http version to measure overhead of the fetch servers in various scenarios.


Disclosure: These changes were created by GPT 5.6 Sol, by looking at hono node-server and srvx's repo under my supervision

@yusukebe

Copy link
Copy Markdown
Member

Hey @BlankParticle

This is great! Can we also have a single ranked table like srvx has? Something like "one number per server, fastest first". Like the below:

CleanShot 2026-08-16 at 22 07 32@2x

@BlankParticle

Copy link
Copy Markdown
Contributor Author

hello @yusukebe,
looks like srvx uses json round trip as the benchmark, i have added the section and it compares against node http as the baseline

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

Copy link
Copy Markdown
Member

looks like srvx uses json round trip as the benchmark, i have added the section and it compares against node http as the baseline

I see! Looks good. Thanks @BlankParticle

@yusukebe
yusukebe merged commit 8f505ae into honojs:main Aug 16, 2026
6 checks passed
@BlankParticle
BlankParticle deleted the chore/add-better-benchmarks branch August 16, 2026 13:43
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.

2 participants