Performance metrics
What "performance" means
"Faster" depends on who is asking. A laptop user cares about response time: how long one task takes from start to finish. A data-center operator cares about throughput: how many tasks finish per hour. The two can conflict. Adding cores raises throughput without making any single task faster, and a deep queue raises throughput while hurting response time.
Execution time can mean wall-clock time, everything a user waits for including I/O and other programs, or CPU time, only the time the processor spends on this program. Architecture studies usually use CPU time; system buyers should look at wall-clock time on their own workloads.
Time and the iron law
The iron law is the only fully reliable performance metric, because it is execution time itself. CPI (cycles per instruction) is the average number of clock cycles each instruction takes. Each factor alone can mislead: a higher clock rate is worthless if CPI rises more, and fewer instructions do not help if each takes longer. IPC (instructions per cycle), the inverse of CPI, is the usual measure of microarchitectural efficiency, but it compares fairly only between machines running the same instructions.
Metrics that mislead
MIPS (millions of instructions per second) rewards executing many instructions, not finishing the job. Suppose two compilers build the same program for a 3 GHz processor. Version A executes 10 billion instructions at CPI 1.0; version B executes 6 billion at CPI 1.5.
Version A: 3.33 s and 3,000 MIPS. Version B: 3.0 s and 2,000 MIPS. Version B is faster but has the lower MIPS rating. The same trap applies to clock rate alone, to peak FLOPS that real code never reaches, and to any rate that counts work in units that differ between machines, such as instructions on different ISAs.
Key metrics
| Metric | Measures | Use it for | Watch out for |
|---|---|---|---|
| Execution time | Seconds to finish a task | The final word on speed | Measure the workload you care about |
| Throughput | Tasks, transactions or queries per second | Servers and batch systems | Can rise while response time worsens |
| IPC / CPI | Instructions per cycle (IPC), or its inverse, cycles per instruction (CPI) | Microarchitecture comparisons | Only meaningful for the same instruction stream |
| FLOPS | Floating-point operations per second | Scientific and AI workloads | Peak vs. achieved; precision (FP64, FP16, FP8) must match |
| Bandwidth | Bytes per second moved | Memory, caches, interconnects, storage | Peak vs. sustained |
| Latency percentiles | Median (p50, the 50th percentile), p99 (99th percentile) and p99.9 response times | Interactive and online services | Averages hide the slow requests users notice |
| Cache metrics | Hit rate, average memory access time (AMAT), misses per 1,000 instructions | Diagnosing memory behavior | A lower miss rate does not always mean less time |
| Power and energy | Watts drawn; joules per task | Battery life, cooling, electricity cost | Power alone ignores how long the task takes |
| Performance per watt | Work per joule | Data centers, mobile, supercomputers (Green500) | Depends on the operating point chosen |
| Performance per dollar / total cost of ownership (TCO) | Work per unit of purchase and running cost | Buying decisions | Include power, cooling, space and software licenses |
Tail latency
For online services, the slowest responses matter more than the average. Dean and Barroso showed why: when one user request fans out to many servers and must wait for all of them, rare slow responses become common. If each server answers within 10 ms 99% of the time and a request touches 100 servers, the chance that all 100 are fast is 0.99100 ≈ 37%. So 63% of user requests see at least one slow server. This is why service-level objectives are written as percentiles (p99 under 50 ms), and why architects care about variability caused by shared caches, garbage collection, power management and interrupts, not just average speed.
Energy and cost
Power and energy answer different questions. Power (watts) sets cooling and battery drain rate; energy (joules) sets how much battery or electricity a task uses. A processor drawing 10 W for 2 s uses 20 J; one drawing 5 W for 3.5 s uses only 17.5 J but is much slower. The energy-delay product, proposed by Gonzalez and Horowitz, weighs both: 40 J·s for the first and about 61 J·s for the second, so the faster chip is the better design overall. Finishing quickly and then sleeping ("race to idle") often saves energy for this reason.
Barroso and Hölzle observed that servers spend most of their time at 10–50% utilization, where older machines were very inefficient, and argued for energy-proportional computing: power that falls with load. In data centers, total cost of ownership (TCO), covering purchase, power, cooling and space over several years, usually decides what gets bought.
Benchmarking
Why benchmark
The best benchmark is the program you actually run, but buyers, designers and researchers need common ground. A benchmark is a standardized program or set of programs, with fixed inputs and run rules, so that results from different machines and labs can be compared fairly and reproduced.
Benchmarks serve several purposes: comparing systems before purchase, guiding design decisions in simulation long before silicon exists, catching performance regressions in hardware, compilers and software, and, less usefully, marketing. A good benchmark is representative of real work, repeatable, portable across systems, and hard to game.
Kinds of benchmarks
| Kind | Examples | Tells you | Limitation |
|---|---|---|---|
| Microbenchmarks | Memory latency tests, STREAM (bandwidth), instruction latency tables | One property of the hardware, precisely | Says little about whole applications |
| Kernels | LINPACK / HPL (dense linear algebra), HPCG, matrix multiply | Peak-like performance on a core computation | HPL rewards floating-point peak more than real codes do |
| Synthetic | Dhrystone, Whetstone | Historical comparisons | Small enough to fit in cache and easy for compilers to optimize away; largely obsolete |
| Application suites | SPEC CPU, SPECjbb, TPC database benchmarks | Performance on realistic programs | May not match your workload; expensive to run fully |
| Domain suites | MLPerf (AI training and inference), Graph500, CoreMark (embedded) | Performance in one field | Narrow by design |
| Energy benchmarks | SPECpower, Green500, SPEC CPU's optional energy metric | Performance per watt | Depends on configuration and operating point |
SPEC CPU
The Standard Performance Evaluation Corporation's CPU suites are the most widely used processor benchmarks. They are built from real applications such as compilers, compression, simulation and physics codes, distributed as source code, compiled by the tester, and run under strict rules that require full disclosure of the hardware and software configuration. SPEC CPU 2026, released in May 2026, replaces SPEC CPU 2017 and grows the collection from 43 to 52 benchmarks.
| Concept | Meaning |
|---|---|
| SPECspeed | Time to finish one copy of each benchmark, which may use many threads: a response-time measure |
| SPECrate | Throughput when many copies run at once, usually one per core or thread |
| Integer and floating point | Separate suites for integer-dominated and floating-point-dominated programs |
| Ratio | Each benchmark's result is the reference machine's time divided by the measured time, so higher is better |
| Overall score | The geometric mean of the benchmark ratios |
| Base and peak | Base uses one conservative set of compiler options for all benchmarks; peak allows tuning each one |
Summarizing results
Reducing a suite to one number throws information away, and the kind of average chosen can change the answer.
- Times: total or arithmetic mean of execution times reflects running each program once. Weight them if some programs run more often.
- Rates (such as MFLOPS) for equal amounts of work: use the harmonic mean, which corresponds to total time.
- Normalized ratios (time relative to a reference machine): use the geometric mean. Fleming and Wallace showed it is the only mean whose ranking does not depend on which machine is chosen as the reference.
The geometric mean has a cost: it does not correspond to the total time of any real workload, as Smith pointed out. So the best practice is to report the individual results alongside any summary, and to use a weighted mean when the real workload mix is known (John).
Averages calculator
Execution times in seconds for three programs on three machines. Edit any value. The table shows which machine "wins" under each summary.
| Program | Machine A | Machine B | Machine C |
|---|---|---|---|
| Program 1 | |||
| Program 2 | |||
| Program 3 |
Things to try. With the defaults, the arithmetic mean of normalized times says A is best when A is the reference and C is best when C is the reference. The geometric mean ranks the machines the same way whatever the reference. Make Program 2 run 10 seconds on A to see A win on total time.
Pitfalls
| Pitfall | What goes wrong |
|---|---|
| Benchmark-specific tuning | Compilers and drivers recognize a benchmark and optimize for it in ways that do not help real programs |
| Toy inputs | Small data sets fit in cache and hide memory bottlenecks that real inputs expose |
| Cherry-picking | Reporting only the benchmarks or configurations that favor one system |
| Peak vs. sustained | Quoting theoretical maximums instead of measured performance |
| Cold start and warm-up | First runs include page faults, cache misses and just-in-time compilation; later runs do not |
| Noise | Turbo boost, thermal throttling, background tasks and memory layout change results between runs. Mytkowicz and colleagues showed that even the size of environment variables can change results by several percent |
| Single runs | Reporting one measurement with no indication of variance |
| Hidden configuration | Omitting compiler flags, memory configuration, power settings or core counts so results cannot be reproduced |
Sound methodology
- State the question. Response time or throughput? Which workloads, which input sizes, which systems?
- Choose representative workloads. Prefer real applications with realistic inputs; use microbenchmarks to explain results, not to replace them.
- Control the environment. Fix frequency settings, pin threads, stop background work, and record every hardware and software setting.
- Warm up, then repeat. Discard warm-up runs and repeat enough times to estimate variance.
- Report statistics. Give means with confidence intervals or medians with ranges, and use the correct kind of average (Georges and colleagues; Hoefler and Belli).
- Show the details. Publish per-benchmark results and the full configuration so others can reproduce them.
Analyzing results
Reading a benchmark profile
A suite score answers "how fast overall?" The individual results answer the more useful question: where is this machine strong or weak? Benchmarks stress different parts of the hardware. Some chase pointers through memory and are bound by memory latency; some stream through large arrays and are bound by bandwidth; some are full of hard-to-predict branches; some are dense loops that reward wide SIMD units and high clock rates. Workload-characterization studies, such as Limaye and Adegbija's analysis of SPEC CPU 2017, measure these properties for each benchmark.
Comparing two machines benchmark by benchmark and grouping by bottleneck turns a list of numbers into an architectural explanation. A machine that wins big on bandwidth-bound programs but loses on branchy ones probably has more memory channels but a weaker branch predictor or lower clock.
Profile analyzer
Example results for two hypothetical processors. Bars show Y's speedup over X on each workload; the summary groups workloads by their main bottleneck.
Why it is fast or slow
To explain a result, architects read hardware performance counters: on-chip counters of cycles, instructions, cache misses, branch mispredictions and stalls, accessed with tools such as Linux perf, Intel VTune or AMD uProf. Combining counters into a CPI stack shows how much each cause contributes, as Eyerman and colleagues formalized.
Yasin's top-down method, now built into Intel's tools, divides every pipeline slot into four categories and then drills down: retiring (useful work), bad speculation (work thrown away after mispredictions), front-end bound (the core is starved of instructions) and back-end bound (instructions wait for execution units or memory). The roofline model complements it by showing whether a kernel is limited by compute or by memory bandwidth.
CPI stack from counters
Estimate where the cycles go from a handful of counter values.
Checking a claim
- Faster at what? Which benchmark, which input, which metric: time, throughput, or a rate that could mislead?
- Compared with what? The previous generation, a competitor's best part, or a weaker configuration?
- Under what conditions? Compiler and flags, memory configuration, power limits, number of cores and threads.
- How summarized? Geometric mean of ratios, total time, or a single favorable benchmark?
- Reproducible? Are per-benchmark results and full configurations published, as SPEC and MLPerf require?
- Relevant to me? Does the workload behave like mine: memory-bound or compute-bound, single-threaded or parallel?
Resources
Interactive tools and references
Peer-reviewed reading
- Fleming, P. J., & Wallace, J. J. (1986). How not to lie with statistics: The correct way to summarize benchmark results. Communications of the ACM, 29(3), 218–221.Why normalized results need the geometric mean.doi.org/10.1145/5666.5673
- Smith, J. E. (1988). Characterizing computer performance with a single number. Communications of the ACM, 31(10), 1202–1206.The case for time-based summaries.doi.org/10.1145/63039.63043
- John, L. K. (2004). More on finding a single number to indicate overall performance of a benchmark suite. ACM SIGARCH Computer Architecture News, 32(1), 3–8.When to use which mean, and weighted means.doi.org/10.1145/991124.991126
- Weicker, R. P. (1984). Dhrystone: A synthetic systems programming benchmark. Communications of the ACM, 27(10), 1013–1030.A classic synthetic benchmark, and why such benchmarks fell out of favor.doi.org/10.1145/358274.358283
- Henning, J. L. (2000). SPEC CPU2000: Measuring CPU performance in the new millennium. IEEE Computer, 33(7), 28–35.How SPEC builds and governs its suites.doi.org/10.1109/2.869367
- Limaye, A., & Adegbija, T. (2018). A workload characterization of the SPEC CPU2017 benchmark suite. Proc. IEEE ISPASS, 149–158.What each benchmark stresses in the hardware.doi.org/10.1109/ISPASS.2018.00028
- Dongarra, J. J., Luszczek, P., & Petitet, A. (2003). The LINPACK benchmark: Past, present and future. Concurrency and Computation: Practice and Experience, 15(9), 803–820.The benchmark behind the TOP500 list.doi.org/10.1002/cpe.728
- Mattson, P., et al. (2020). MLPerf: An industry standard benchmark suite for machine learning performance. IEEE Micro, 40(2), 8–16.Benchmarking AI training fairly.doi.org/10.1109/MM.2020.2974843
- Reddi, V. J., et al. (2020). MLPerf inference benchmark. Proc. ISCA, 446–459.Latency and throughput scenarios for AI inference.doi.org/10.1109/ISCA45697.2020.00045
- Dean, J., & Barroso, L. A. (2013). The tail at scale. Communications of the ACM, 56(2), 74–80.Why the slowest responses dominate at scale.doi.org/10.1145/2408776.2408794
- Gonzalez, R., & Horowitz, M. (1996). Energy dissipation in general purpose microprocessors. IEEE Journal of Solid-State Circuits, 31(9), 1277–1284.The energy-delay product.doi.org/10.1109/4.535411
- Barroso, L. A., & Hölzle, U. (2007). The case for energy-proportional computing. IEEE Computer, 40(12), 33–37.Why efficiency at low utilization matters.doi.org/10.1109/MC.2007.443
- Eyerman, S., Eeckhout, L., Karkhanis, T., & Smith, J. E. (2006). A performance counter architecture for computing accurate CPI components. Proc. ASPLOS XII, 175–184.Building trustworthy CPI stacks from counters.doi.org/10.1145/1168919.1168880
- Yasin, A. (2014). A top-down method for performance analysis and counters architecture. Proc. IEEE ISPASS, 35–44.The top-down bottleneck method used in Intel's tools.doi.org/10.1109/ISPASS.2014.6844459
- Mytkowicz, T., Diwan, A., Hauswirth, M., & Sweeney, P. F. (2009). Producing wrong data without doing anything obviously wrong! Proc. ASPLOS XIV, 265–276.How hidden factors bias measurements.doi.org/10.1145/1508244.1508275
- Georges, A., Buytaert, D., & Eeckhout, L. (2007). Statistically rigorous Java performance evaluation. Proc. ACM OOPSLA, 57–76.Confidence intervals and repeated runs, applicable well beyond Java.doi.org/10.1145/1297027.1297033
- Hoefler, T., & Belli, R. (2015). Scientific benchmarking of parallel computing systems: Twelve ways to tell the masses when reporting performance results. Proc. SC15, 1–12.Rules for honest parallel performance reporting.doi.org/10.1145/2807591.2807644