mirror of
https://github.com/honojs/hono.git
synced 2024-11-22 19:44:26 +01:00
677b572fd5
* wip * Use RegExp instead of URLPattern. (#1039) * Use RegExp instead of URLPattern. * refactor(url-pattern-router): tidy up. * refactor(url-pattern-router): Tweaks type for mangling. * refactor: Rename URLPatternRouter to PatternRouter. * chore: denoify. --------- Co-authored-by: Taku Amano <taku@taaas.jp>
33 lines
750 B
Markdown
33 lines
750 B
Markdown
# Router benchmarks
|
|
|
|
Benchmark of the most commonly used HTTP routers.
|
|
|
|
Tested routes:
|
|
|
|
- [find-my-way](https://github.com/delvedor/find-my-way)
|
|
- [express](https://www.npmjs.com/package/express)
|
|
- [koa-router](https://github.com/alexmingoia/koa-router)
|
|
- [koa-tree-router](https://github.com/steambap/koa-tree-router)
|
|
- [trek-router](https://www.npmjs.com/package/trek-router)
|
|
- [@medley/router](https://www.npmjs.com/package/@medley/router)
|
|
- [Hono RegExpRouter](https://github.com/honojs/hono)
|
|
- [Hono TrieRouter](https://github.com/honojs/hono)
|
|
|
|
For Node.js:
|
|
|
|
```
|
|
yarn bench:node
|
|
```
|
|
|
|
For Bun:
|
|
|
|
```
|
|
yarn bench:bun
|
|
```
|
|
|
|
This project is heavily impaired by [delvedor/router-benchmark](https://github.com/delvedor/router-benchmark)
|
|
|
|
## License
|
|
|
|
MIT
|