Definitions. A microbenchmark is either a program or routine to measure and test the performance of a single component or task . Microbenchmarks are used to measure simple and well-defined quantities such as elapsed time, rate of operations, bandwidth, or latency.