In computing, a benchmark is the act of running a computer program, a set of programs, or other operations, in order to assess the relative performance of an object, normally by running a number of standard tests and trials against it.
The term benchmark is also commonly utilized for the purposes of elaborately designed benchmarking programs themselves.
Benchmarking is usually associated with assessing performance characteristics of computer hardware, for example, the floating point operation performance of a CPU, but there are circumstances when the technique is also applicable to software. Software benchmarks are, for example, run against compilers or database management systems (DBMS).
Benchmarks provide a method of comparing the performance of various subsystems across different chip/system architectures. Benchmarking as a part of continuous integration is called Continuous Benchmarking.
Contents
Purpose
As computer architecture advanced, it became more difficult to compare the performance of various computer systems simply by looking at their specifications. Therefore, tests were developed that allowed comparison of different architectures. For example, Pentium 4 processors generally operated at a higher clock frequency than Athlon XP or PowerPC processors, which did not necessarily translate to more computational power; a processor with a slower clock frequency might perform as well as or even better than a processor operating at a higher frequency. See BogoMips and the megahertz myth.
Benchmarks are designed to mimic a particular type of workload on a component or system. Synthetic benchmarks do this by specially created programs that impose the workload on the component. Application benchmarks run real-world programs on the system. While application benchmarks usually give a much better measure of real-world performance on a given system, synthetic benchmarks are useful for testing individual components, like a hard disk or networking device.
Benchmarks are particularly important in CPU design, giving processor architects the ability to measure and make tradeoffs in microarchitectural decisions. For example, if a benchmark extracts the key algorithms of an application, it will contain the performance-sensitive aspects of that application. Running this much smaller snippet on a cycle-accurate simulator can give clues on how to improve performance.
Since around 1995, the SPEC collection of benchmarks have become widely used.
Computer companies are known to tune their systems to improve performance on benchmark tests that are not representative of real world usage. Benchmarks have been improved to more closely mimic real world usage, so that any tuning carries over to application performance.
Software vendors also use benchmarks in their marketing, such as the "benchmark wars" between rival relational database makers in the 1980s and 1990s. Companies commonly report only those benchmarks (or aspects of benchmarks) that show their products in the best light. They also have been known to mis-represent the significance of benchmarks, again to show their products in the best possible light.
Functionality
Features of benchmarking software may include recording/exporting the course of performance to a spreadsheet file, visualization such as drawing line graphs or color-coded tiles, and pausing the process to be able to resume without having to start over. Software can have additional features specific to its purpose, for example, disk benchmarking software may be able to optionally start measuring the disk speed within a specified range of the disk rather than the full disk, measure random access reading speed and latency, have a "quick scan" feature which measures the speed through samples of specified intervals and sizes, and allow specifying a data block size, meaning the number of requested bytes per read request.
Challenges
Benchmarking is not easy and often involves several iterative rounds in order to arrive at predictable, useful conclusions. Interpretation of benchmarking data is also extraordinarily difficult. Here is a partial list of common challenges:
Vendors tend to tune their products specifically for industry-standard benchmarks.
Some vendors have been accused of "cheating" at benchmarks — designing their systems such that they give much higher benchmark numbers, but are not as effective at the actual likely workload.
Many benchmarks focus entirely on the speed of computational performance, neglecting other important features of a computer system, such as:
Qualities of service, aside from raw performance. Examples of unmeasured qualities of service include security, availability, reliability, execution integrity, serviceability, scalability (especially the ability to quickly and nondisruptively add or reallocate capacity), etc. There are often real trade-offs between and among these qualities of service, and all are important in business computing. Transaction Processing Performance Council Benchmark specifications partially address these concerns by specifying ACID property tests, database scalability rules, and service level requirements.
In general, benchmarks do not measure Total cost of ownership. Transaction Processing Performance Council Benchmark specifications partially address this concern by specifying that a price/performance metric must be reported in addition to a raw performance metric, using a simplified TCO formula. However, the costs are necessarily only partial, and vendors have been known to price specifically (and only) for the benchmark, designing a highly specific "benchmark special" configuration with an artificially low price. Even a tiny deviation from the benchmark package results in a much higher price in real world experience.
Facilities burden (space, power, and cooling). When more power is used, a portable system will have a shorter battery life and require recharging more often. A server that consumes more power and/or space may not be able to fit within existing data center resource constraints, including cooling limitations. There are real trade-offs as most semiconductors require more power to switch faster. See also performance per watt.
Benchmarking principles
There are seven vital characteristics for benchmarks. These key properties are:
Relevance: Benchmarks should measure relatively vital features.
Representativeness: Benchmark performance metrics should be broadly accepted by industry and academia.
Equity: All systems should be fairly compared.
Repeatability: Benchmark results can be verified.
Cost-effectiveness: Benchmark tests are economical.
Scalability: Benchmark tests should work across systems possessing a range of resources from low to high.
Transparency: Benchmark metrics should be easy to understand.
Types of benchmark
Real program
word processing software
tool software of CAD
user's application software (i.e.: MIS)
Video games
Compilers building a large project, for example Chromium browser or Linux kernel
Component Benchmark / Microbenchmark
core routine consists of a relatively small and specific piece of code.
measure performance of a computer's basic components
may be used for automatic detection of computer's hardware parameters like number of registers, cache size, memory latency, etc.
Kernel
contains key codes
normally abstracted from actual program
popular kernel: Livermore loop
linpack benchmark (contains basic linear algebra subroutine written in FORTRAN language)
results are represented in Mflop/s.
Synthetic Benchmark
Procedure for programming synthetic benchmark:
take statistics of all types of operations from many application programs
Common benchmarks
Industry standard (audited and verifiable)
Embedded Microprocessor Benchmark Consortium (EEMBC)
Standard Performance Evaluation Corporation (SPEC), in particular their SPECint and SPECfp
Transaction Processing Performance Council (TPC): DBMS benchmarks
Open source benchmarks
AIM Multiuser Benchmark – composed of a list of tests that could be mixed to create a 'load mix' that would simulate a specific computer function on any UNIX-type OS.
Bonnie++ – filesystem and hard drive benchmark
BRL-CAD – cross-platform architecture-agnostic benchmark suite based on multithreaded ray tracing performance; baselined against a VAX-11/780; and used since 1984 for evaluating relative CPU performance, compiler differences, optimization levels, coherency, architecture differences, and operating system differences.
Collective Knowledge – customizable, cross-platform framework to crowdsource benchmarking and optimization of user workloads (such as deep learning) across hardware provided by volunteers
Coremark – Embedded computing benchmark
DEISA Benchmark Suite – scientific HPC applications benchmark
Dhrystone – integer arithmetic performance, often reported in DMIPS (Dhrystone millions of instructions per second)
DiskSpd – Command-line tool for storage benchmarking that generates a variety of requests against computer files, partitions or storage devices
Fhourstones – an integer benchmark
HINT – designed to measure overall CPU and memory performance
Iometer – I/O subsystem measurement and characterization tool for single and clustered systems.
IOzone – Filesystem benchmark
LINPACK benchmarks – traditionally used to measure FLOPS
Microsoft Windows benchmarks
CrystalDiskMark
Underwriters Laboratories (UL): 3DMark, PCMark
Heaven Benchmark
PiFast
Superposition Benchmark
Super PI
SuperPrime
Whetstone
Windows System Assessment Tool, included with Windows Vista and later releases, providing an index for consumers to rate their systems easily
Worldbench (discontinued)
Others
AnTuTu – commonly used on phones and ARM-based devices.
Byte Sieve - originally tested language performance, but widely used as a machine benchmark as well.
Creative Computing Benchmark – Compares the BASIC programming language on various platforms. Introduced in 1983.
Epoch Capabilities Index, an index of many benchmarks in AI
Geekbench – A cross-platform benchmark for Windows, Linux, macOS, iOS and Android.
iCOMP – the Intel comparative microprocessor performance, published by Intel
Khornerstone
Novabench - a computer benchmarking utility for Microsoft Windows, macOS, and Linux
Performance Rating – modeling scheme used by AMD and Cyrix to reflect the relative performance usually compared to competing products.
Rugg/Feldman benchmarks - one of the earliest microcomputer benchmarks, from 1977.
SunSpider – a browser speed test
UserBenchmark - PC benchmark utility
VMmark – a virtualization benchmark suite.
Will Smith eating spaghetti test - for text-to-video models.



