A pure Python HTTP Library built on free-threaded Python
Free-threaded Python matches FastAPI's I/O throughput at 4x lower complexity.
Free-threaded HTTP library
Free-threaded Python beats async FastAPI +435% on CPU work—paradigm shift, not toy.
Python backend developers targeting Python 3.13+, CPU-bound workload optimization
FastAPI · Starlette · Quart
Results against FastAPI (100 concurrent clients):
- JSON: 8,400 req/s vs 4,500 req/s (+87%)
- CPU-bound: 1,425 req/s vs 266 req/s (+435%)
The CPU-bound result is the interesting one. Async can't parallelize CPU work - it's fundamentally single-threaded. With free-threaded Python, adding more threads actually scales:
- 4 threads: 608 req/s
- 8 threads: 1,172 req/s (1.9x)
- 16 threads: 1,297 req/s (2.1x)
The framework is ~500 lines across 5 files. Key implementation choices:
- ThreadPoolExecutor for workers
- HTTP/1.1 keep-alive connections
- Radix tree router for O(1) matching
- Pydantic for validation
- Optional orjson for faster serialization
This is experimental and not production-ready, but it's an interesting datapoint for what's possible when Python drops the GIL.
Free-threaded Python matches FastAPI's I/O throughput at 4x lower complexity.
Hand-coded parser beats established libraries on speed but remains alpha quality.
SIEVE cache beats LRU with one-line swap, but only matters if you're bottlenecked on cache.
Multi-threaded video capture fixes OpenCV's standard blocking I/O bottleneck for Python pipelines.
Finally a Python boilerplate for devs who hate Node.js SSR stacks.
Pure C99 GPT with SIMD beats Python 4,600x; drop two files into any project.