Releases: FasterApiWeb/FasterAPI
v0.1.2
FasterAPI v0.1.2
A high-performance ASGI web framework — drop-in FastAPI replacement.
pip install faster-api-web5 Key Innovations
1. Radix Tree Router — 7.6x faster routing
O(k) lookups regardless of route count. 1,104,318 ops/s vs 144,822 ops/s (regex).
2. msgspec (Rust-backed) — 9.4x faster JSON encoding
Dict → bytes in a single C call. 6,317,891 ops/s vs 670,234 ops/s.
3. Compiled Dependency Injection — zero per-request introspection
Handler signatures compiled once at startup. Eliminates ~80% of per-request framework overhead.
4. uvloop — C-powered event loop
libuv-backed (same engine as Node.js). All I/O scheduling in C.
5. Lazy Request Parsing — only parse what you use
Headers, query params, cookies parsed on first access only.
Benchmarks (Python 3.13.7)
| Endpoint | FasterAPI | FastAPI | Speedup |
|---|---|---|---|
GET /health |
335,612 req/s | 49,005 req/s | 6.85x |
GET /users/{id} |
282,835 req/s | 32,391 req/s | 8.73x |
POST /users |
193,225 req/s | 27,031 req/s | 7.15x |
Install
pip install faster-api-web # core
pip install faster-api-web[all] # + uvloopDocker
docker pull ghcr.io/fasterapiweb/fasterapi:latestv0.1.1
FasterAPI v0.1.1
A high-performance ASGI web framework — drop-in FastAPI replacement.
pip install faster-api-web5 Key Innovations
1. Radix Tree Router — 7.6x faster routing
O(k) lookups regardless of route count. 1,104,318 ops/s vs 144,822 ops/s (regex).
2. msgspec (Rust-backed) — 9.4x faster JSON encoding
Dict → bytes in a single C call. 6,317,891 ops/s vs 670,234 ops/s.
3. Compiled Dependency Injection — zero per-request introspection
Handler signatures compiled once at startup. Eliminates ~80% of per-request framework overhead.
4. uvloop — C-powered event loop
libuv-backed (same engine as Node.js). All I/O scheduling in C.
5. Lazy Request Parsing — only parse what you use
Headers, query params, cookies parsed on first access only.
Benchmarks (Python 3.13.7)
| Endpoint | FasterAPI | FastAPI | Speedup |
|---|---|---|---|
GET /health |
335,612 req/s | 49,005 req/s | 6.85x |
GET /users/{id} |
282,835 req/s | 32,391 req/s | 8.73x |
POST /users |
193,225 req/s | 27,031 req/s | 7.15x |
Install
pip install faster-api-web # core
pip install faster-api-web[all] # + uvloopDocker
docker pull ghcr.io/fasterapiweb/fasterapi:latest