~/talk

Run Fast! Catch Performance Regressions in Python

Talkat Conf42 Python 2023 Β· on Thursday, 2023-03-09Β· [testing]
linkedin:epompeii
slides:none on file

A calendar API adds a simple fizz/buzz/fizzbuzz feature and then a naive Fibonacci check that pushes endpoint cost from ~0.1s to much higher at scale; local microbenchmarks using pytest-benchmark show the slow naive algorithm, applying memoization drops runtime roughly sixfold, and committing benchmarks to CI with the Bencher CLI records results and raises alerts when a new commit exceeds configured thresholds so regressions get caught before production.

AI-written summary Β· about

  1. 0:00Performance regression detection
  2. 1:47FizzBuzz Fibonacci disaster
  3. 5:40Naive Fibonacci benchmarking
  4. 8:31Memoization for performance
  5. 9:54Micro vs macro benchmarks
  6. 12:22Local benchmarking limits
  7. 13:02Continuous benchmarking with Bencher
  8. 16:55Why continuous benchmarking
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.