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
Stop Storing Third-Party Tokens in Your Database Icon
Stop Storing Third-Party Tokens in Your Database

Auth0 Token Vault handles secure token storage, exchange, and refresh for external providers so you don't have to build it yourself.

Rolling your own OAuth token storage can be a security liability. Token Vault securely stores access and refresh tokens from federated providers and handles exchange and renewal automatically. Connected accounts, refresh exchange, and privileged worker flows included.
Try Auth0 for Free
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