Getting Started
Benchmarking
Performance
Raptor is designed for performance at scale. Here's how it compares to other popular frameworks, benchmarked on an Apple M3 Pro running Deno 2.7.2.
| Scenario | Raptor | Oak | Hono |
|---|---|---|---|
| Single middleware | 2.5 µs | 4.1 µs | 4.0 µs |
| 10 middleware | 3.8 µs | 5.7 µs | 9.2 µs |
| 50 middleware | 10.0 µs | 12.5 µs | 27.5 µs |
| 100 middleware | 15.9 µs | 21.6 µs | 50.9 µs |
| 200 middleware | 28.1 µs | 37.5 µs | 94.2 µs |
| JSON processing | 5.0 µs | 6.5 µs | 6.8 µs |
The performance advantage increases with scale, making Raptor the clear choice for production applications with complex middleware chains.
Running Benchmarks
You can run these benchmarks yourself by forking @raptor/kernel and running the following benchmarking script:
deno bench benchmark.ts