| Metric | Value |
| Count query | <100ms |
| Export 3,878 products | <1s |
| Binary size | 1.9 MB |
| Startup time | <100ms |
| Memory usage | ~10 MB |
| Language | Time | Memory |
| Python (pyodbc) | ~2.0s | ~50 MB |
| Rust (tiberius) | ~0.3s | ~10 MB |
Rust advantage: 5-7x faster, 5x less memory.
- Tiberius — native TDS protocol, no ODBC layer overhead
- Tokio — async I/O, non-blocking database access
- Zero-copy where possible — serde deserialization directly from TDS rows
- Release build optimizations — LTO, single codegen unit, stripped symbols
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true