What is a micro-benchmark?

What is a micro-benchmark?

Approach: Define measuring performance of small code snippets.

An attempt to measure the performance of a very small bit of code, like a single method or loop, often complicated by compiler optimizations.

Follow-up: What is the danger of micro-benchmarking?

Key concepts: jit compilation, warmup.