2023-01-29 06:10:47 +01:00
|
|
|
# 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
|
|
|
|
```
|
|
|
|
|
2023-04-26 03:15:45 +02:00
|
|
|
This project is heavily impaired by [delvedor/router-benchmark](https://github.com/delvedor/router-benchmark)
|
2023-01-29 06:10:47 +01:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
MIT
|