This project is a practical guide to performance analysis and tuning on modern CPUs, bridging microarchitecture details with hands-on profiling. It explains how caches, TLBs, prefetchers, branch predictors, and out-of-order execution influence real program speed, then connects those concepts to concrete optimization strategies. Readers learn how to design trustworthy benchmarks, avoid measurement traps (warmup, turbo, frequency scaling), and interpret hardware performance counters. The book walks through vectorization, memory layout, data-oriented design, and algorithmic choices, illustrating when compiler flags, intrinsics, or hand-rolled assembly make sense. It also demonstrates tool-driven workflows—using profilers and PMU events—to locate true bottlenecks and validate that changes actually help. Throughout, the emphasis is on a methodical loop of hypothesize → measure → change → re-measure, rather than folklore or premature micro-optimizations.

Features

  • Covers CPU microarchitecture, caches, memory hierarchies, branch predictors, vector units, and related performance topics
  • Provides practical tuning advice (code examples, benchmarking, profiling)
  • Source files in LaTeX plus tooling: Python script for export, tools like pandoc, bibtex, pdflatex
  • Glossary, metadata, figures, charts to aid understanding; visual aids (images, diagrams)
  • Supports building PDF output on Windows and Linux (macOS possible but with extra steps)
  • Freely distributable under a permissive (CC0) license; readers have full access to all content

Project Samples

Project Activity

See All Activity >

Categories

System

License

Creative Commons Attribution License

Follow Perf Book

Perf Book Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Perf Book!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python System Software

Registered

2025-09-22