Timing and Benchmarking Tools
Measure before you optimize.
Measure Before You Optimize
Never guess where time goes. You first measure your code, because the slow part is rarely the part you expected. ⏱️
The time Module
Mojo ships a time module with helpers to read the clock. It is your simplest tool for timing a block of work.
from time import nowAll lessons in this course
- Timing and Benchmarking Tools
- Finding the Real Bottleneck
- Optimizing What Matters
- Reading a Profile Report