143

Benchmarking JDK String.replace() vs Apache Commons StringUtils.replace() &#...

 6 years ago
source link: https://blog.jooq.org/2017/10/11/benchmarking-jdk-string-replace-vs-apache-commons-stringutils-replace/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
What's better? Using the JDK's String.replace() or something like Apache Commons Lang's Apache Commons Lang's StringUtils.replace()? In this article, I'll compare the two, first in a profiling session using Java Mission Control (JMC), then in a benchmark using JMH, and we'll see that Java 9 heavily improved things in this area. Profiling using JMC In…

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK