Performance Estimation

Use Jeff Dean and Sanjay Ghemawat's canonical estimation guidance for back-of-the-envelope performance calculations. Use when comparing designs before implementation, estimating latency or resource cost, reasoning about operation counts, or deciding what is likely to dominate.

boshjerns Updated 1 repo stars
The Performance Hints page on the Abseil website, showing the title, authors, update date, and section navigation

File contents

Estimation

Read the exact current source section before applying it:

python3 ~/.codex/skills/performance-hints/scripts/fetch_section.py estimation --output text

Canonical section: Estimation

Attribute the guidance to Jeff Dean and Sanjay Ghemawat. Do not assume every hint applies: inspect the code, identify the relevant cost, and measure or estimate before recommending a change.

This section includes:

  • Example: Time to quicksort a billion 4 byte numbers
  • Example: Time to generate a web page with 30 image thumbnails

boshjerns/performance-hints-agent-skills commit 60f46c5ca6

Frequently asked questions

npx get-skill add boshjerns/performance-estimation