Agenda

  1. Warm-up: Spot the Bug β€” the loop that does its work twice
  2. The problem of the day: The Race β€” two programs, the same answer, and a difference you can time with the clock on the wall. Diagnostic: nothing is collected, and how this room explains the gap is what decides how long we spend naming it.
  3. Measure, do not guess: Profiling and Timing Code
  4. The board: what actually made the difference, in this room’s own words. No vocabulary from me today β€” that arrives when you need it.

Things to do before our next class

  • Journal: your two timings, and your best current explanation of the gap between them.