github honojs/hono v2.0.9

latest releases: v4.6.10, v4.6.9, v4.6.8...
2 years ago

Summary

Performance improvement - We have revised the await/async process so that it is faster in some situations.

It has been 8-9% faster in the benchmark:

hono - trie-router(default) x 393,919 ops/sec ±4.52% (86 runs sampled)
hono - regexp-router x 478,140 ops/sec ±2.85% (83 runs sampled)
hono optimized - trie-router(default) x 427,940 ops/sec ±4.32% (81 runs sampled)
hono optimized - regexp-router x 512,488 ops/sec ±5.28% (75 runs sampled)
Fastest is hono optimized - regexp-router
✨  Done in 28.36s.

On Bun, it has been 15% faster.

Before: Requests/sec: 57043.0018
After:  Requests/sec: 65658.9860

What's Changed

  • fix(context): fixed ContextVariableMap is not enabled in built code by @yusukebe in #465
  • perf(compose): optimize await by @yusukebe in #466
  • docs(readme): update benchmark results by @yusukebe in #467
  • chore: add FUNDING.yml by @yusukebe in #468
  • fix(compose): Support a handler that non-async and returning a promise. by @usualoma in #469

Full Changelog: v2.0.8...v2.0.9

Don't miss a new hono release

NewReleases is sending notifications on new releases.