Java Benchmarks with JMH

Useful benchmarking is hard, but there are tools and patterns to help

Ben Weidig
The Startup
Published in
7 min readJun 10, 2020

--

Almost every developer knows the phrase “premature optimization is the root of all evil”, coined by Donald Knuth in 1974. But how are we supposed to know what is worthy of being optimized?

Our computing power improved manifold since then. But the sentiment to focus on the real…

--

--

Ben Weidig
The Startup

Software developer, entrepreneur, blogger. Mostly Java, sometimes Swift, Golang, Bash and all the other fun stuff.