Profiling the Python Baseline
Find the slow path worth porting.
Start With a Baseline
Before you port anything, measure the Python app as it is today. This baseline is the number every later speedup is compared against. 📊
Why Profile First
Most of a program's time hides in a tiny slice of code. Profiling shows you exactly where, so you port the slow part and skip the rest.
All lessons in this course
- Profiling the Python Baseline
- Rewriting the Hot Path in Mojo
- Parallelizing and Tuning the Core
- Shipping the Accelerated Project