benchmark

A repeatable measurement of how long code takes, or how much it uses, under a fixed workload, or more broadly a standard point of comparison such as an industry average.

In more detail

A fair benchmark runs the same input on each candidate, repeats enough times to smooth out noise, and compares against a baseline. The workload decides which option wins, so benchmark the case you actually have. Published benchmarks collected from other organisations predict little about your own service, so the most useful comparison is often a system against its own past.

Examples

The course benchmarks list against deque for front insertion and index access.
The lessons benchmark libuv thread pool sizes and Buffer.alloc() against Buffer.allocUnsafe(); warming up lets V8's JIT optimise the code first.

Related terms

Taught in

References

Certification courses