Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Performance Benchmarks

CLI Performance

MetricValue
Count query<100ms
Export 3,878 products<1s
Binary size1.9 MB
Startup time<100ms
Memory usage~10 MB

Comparison with Python

Export 1,000 Products

LanguageTimeMemory
Python (pyodbc)~2.0s~50 MB
Rust (tiberius)~0.3s~10 MB

Rust advantage: 5-7x faster, 5x less memory.

Why It’s Fast

  • 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

Build Optimization Settings

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true