A microbenchmark measures a small code operation or component in isolation. It provides a focused way to compare runtime behavior when efficient code and small memory footprints matter. section 8.5.2
Choose a framework suited to the language:
- JMH for Java. section 8.5.2
- BenchmarkDotNet for .NET. section 8.5.2
- pytest-benchmark for Python. section 8.5.2
Use profiling when a small measurement is not enough: profilers can reveal CPU behavior and memory allocation, while object-layout tools inspect actual memory footprints. section 8.5.2






















