This section is for articles about JMH benchmarks which compare performance in Java code methods which do the same thing but with a different approach behind the scenes.
- String.split once or repeatedly
- A JMH benchmark proving that there's a right way and a wrong way to use String.split in Java.
- String concatenation in a loop
- A JMH benchmark showing the cost of using the wrong way to concatenate strings within a loop.