cheetah
cheetah is ~30% faster than hono, which is supposed to be the fastest JavaScript framework, and ~70% faster than oak, the Express.js of Deno.
Benchmark | Time (avg) | min ... max | p75 | p99 | p995 | p999 |
---|---|---|---|---|---|---|
cheetah | 47.64 µs/run | 40 µs ... 1.62 ms | 42.9 µs | 144.7 µs | 185.8 µs | 899.3 µs |
hono | 59.38 µs/run | 46.8 µs ... 1.73 ms | 54.6 µs | 128.9 µs | 209.8 µs | 1.31 ms |
itty-router | 59.61 µs/run | 52.3 µs ... 1.85 ms | 56.4 µs | 91.5 µs | 106.3 µs | 1.37 ms |
oak | 79.59 µs/run | 70.6 µs ... 1.09 ms | 74.4 µs | 181.4 µs | 254.4 µs | 850.4 µs |
basic.ts — Runtime: Deno 1.32.5 (x86_64-pc-windows-msvc) — CPU: AMD Ryzen 9 5900X 12-Core
Benchmark:Sneak Peek
import cheetah from 'https://deno.land/x/cheetah@v0.3.5/mod.ts'
import { serve } from 'https://deno.land/std@v0.185.0/http/server.ts'
const app = new cheetah()
.get('/', () => 'Hello World')
serve(app.fetch)
❔ Read our Guide to get started.
Why cheetah?
- 🪖
secure
- cheetah ensures that parsing doesn't cause your app to freeze. - 🧙♂️
schema validation
- out-of-the-box support for schema validation via TypeBox or Zod. Show more! - 💎
simple
- built-in support for CORS, caching, schema validation, debugging and more! Show more! - 🪹
chaining & nesting
- cheetah doesn't dictate you how to write your app. Show more! - 🪶
light
- all core functionality in ~14.5 kB. Show more!