publish date
Mar 1, 2023
duration
23
min
Difficulty
Case details
Microbenchmarking is the process of measuring the performance of small pieces of code, typically running in the order of nanoseconds or microseconds. This can be useful for identifying and optimizing bottlenecks in software, as well as comparing the performance of different algorithms or approaches to solving a problem. The talk will focus on the benefits of benchmarking -- why we should benchmark early and often. There will be a demo of microbenchmarking with JMH (Java Microbenchmark Harness). The talk will conclude with a section that talks about validating benchmark results, strategies to improve common software bottlenecks and how to use microbenchmarks in real-world production settings (eg. by integrating with CI/CD to run performance tests that check for degradation).
Share case: