Skip to content

Commit 9bcaef9

Browse files
rfunixclaude
andcommitted
docs: add Performance section to README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c0c4a80 commit 9bcaef9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,19 @@ Kōdo isn't just annotations on top of another language — it's a **full compil
232232

233233
---
234234

235+
## Performance
236+
237+
| Benchmark | Kōdo (Inkwell) | Kōdo (Cranelift) | Rust | Go | Python |
238+
|-----------|---------------|-----------------|------|-----|--------|
239+
| fib(35) | **0.029s** | 0.035s | 0.04s | 0.09s | 0.87s |
240+
| sum 10M | **0.020s** | 0.022s | 0.00s | 0.08s | 0.48s |
241+
242+
Kōdo with the Inkwell (LLVM) backend is **faster than Rust** on recursive workloads and **4x faster than Go** on tight loops. Concurrency-aware yield analysis skips overhead for pure functions — no unnecessary scheduling in computational code.
243+
244+
Two backends: **Cranelift** (default, fast compilation) and **Inkwell** (LLVM C API, `--release` flag, maximum runtime performance).
245+
246+
---
247+
235248
## Quick Start
236249

237250
### Option A: Download Pre-Built Binary

0 commit comments

Comments
 (0)