npm hono 2.0.9
v2.0.9

latest releases: 4.6.2, 4.6.1, 4.6.0...
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.