0Pricing
Mojo Academy · Lesson

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 now

All lessons in this course

  1. Timing and Benchmarking Tools
  2. Finding the Real Bottleneck
  3. Optimizing What Matters
  4. Reading a Profile Report
← Back to Mojo Academy