What is the purpose of the JMH (Java Microbenchmarking Harness) framework?
JMH is a tool for profiling CPU usage in Java applications, but not for microbenchmarking specific code sections.
Thatâ€™s incorrect. JMH is specifically for microbenchmarking, not for profiling general CPU usage.
Can you explain how JMH ensures accurate benchmarking of individual code blocks?