Tag: performance
-
gdb + py-spy vs pdb: Production Debug Latency Compared
gdb and py-spy attach to live Python processes without restarts. Compare overhead, introspection depth, and when sampling beats breakpoints.
-
tracemalloc vs memray vs Py-Spy: Profiler Overhead Cost
Compare Python memory profilers: tracemalloc, memray, and Py-Spy overhead costs. Which one is fastest? Performance benchmarks reveal the winner.
-
5 NumPy Tricks That Cut Portfolio Backtest Time by 10x
Cut backtest runtime from 45 minutes to 4 with stride tricks, vectorized position logic, and array broadcasting. Real before/after benchmarks.
-
Python __slots__: 40% Memory Savings and Interview Gotchas
Cut Python class memory by 40% with __slots__โplus the 3 gotchas interviewers use to catch candidates who only read the docs.
-
JAX vs PyTorch: When JIT Speed Actually Matters
JAX's JIT and vmap deliver 3x speedups on numerical loops, but PyTorch wins in production. When each framework actually matters.
-
Python 3.13 Free-Threading: GIL Removal Benchmarks
Python 3.13 free-threading removes the GIL for real parallel CPU execution. Benchmarks, compatibility gotchas, when it beats multiprocessing.
-
Polars vs Pandas 2026: Benchmarks on Joins, Strings, I/O
Polars beats Pandas 9x on joins but loses on strings. Real benchmarks show when migration pays off and when it wastes your time.
-
PaddleOCR vs EasyOCR Benchmark: Speed, Size, and Accuracy
PaddleOCR vs EasyOCR speed benchmark with real numbers. Compare init time, inference speed, model size, and OCR accuracy on CPU side-by-side.