What is Benchmark?
A representative program run under fixed conditions to compare computer or program performance. Choosing ones close to actual use is important.
Japanese name: ベンチマーク
A representative program run under fixed conditions to compare computer or program performance. Choosing ones close to actual use is important.
Japanese name: ベンチマーク
Performance has no single value; it depends on what is run. Integer-heavy code, floating-point kernels, memory-bound processing and I/O-bound tasks stress different parts of a system, so a machine that wins on one may lose on another. A meaningful benchmark is therefore the real application or a program close to it, run with identical inputs, compiler settings and system conditions on every machine being compared. Execution time of the actual workload remains the most trustworthy measure.
Standard suites such as SPEC CPU bundle many programs derived from real applications, for example compilers, compression and physics simulation. For each program, the reference machine's execution time is divided by the measured time to give a ratio, where higher means faster, and the ratios are combined with a geometric mean into a single score. The geometric mean makes relative comparisons independent of which machine serves as the reference. Run rules fix compiler options and procedures, and published results list full hardware and software details.
Synthetic benchmarks and microbenchmarks isolate one feature, such as memory bandwidth or a single loop, and are useful for diagnosis but poor predictors of overall performance. Typical pitfalls include tuning compilers specifically for a benchmark, comparing runs with different input sizes or settings, ignoring warm-up and caching effects, and reporting one run without checking run-to-run variation. A kernel whose data fits entirely in cache can make a system look much faster than it will be on real data sets.
A benchmark is the workload; the metric is what you report from it, such as execution time, throughput in operations per second, latency percentiles or energy per task. MIPS and peak FLOPS are not benchmarks at all: they ignore how much useful work each instruction does and how often peak rates are actually reached. A fair comparison states the benchmark, the metric and the conditions together.
Answer: A. Many programs derived from real applications are run under fixed rules, and performance is reported as an aggregate of ratios against a reference machine
SPEC CPU is a benchmark suite of many programs based on real applications such as compilers, compression and physics simulation. Each program's execution time is compared with a reference machine's to obtain a ratio, and the ratios are combined into a single value with a geometric mean. There are also rules for compiler settings and run methods, and results are published with detailed conditions.
Because the ratios are normalized to a reference machine, the geometric mean gives the same relative ranking whichever reference is chosen, and a single program with a large ratio is less able to dominate the score.
A synthetic benchmark is an artificial program targeting one feature, while an application benchmark runs real or realistic software. The latter predicts real-world performance better but is harder to standardize.
Only if the benchmark resembles your workload. A system tuned for compute-heavy tests may gain little on memory-bound or I/O-bound programs, so test with code close to your actual use.
Benchmark appears in 2 practice questions across 1 topic, including Performance Analysis.
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.