String.equalsIgnoreCase(...) optimization

Andrew Haley aph at redhat.com
Wed Apr 27 10:17:50 UTC 2016


On 27/04/16 10:57, Andrey wrote:

> I publish my JMH benchmark at github
> https://github.com/volodin-aa/openjdk-benchmark

This test needs to be better.  Always comparing "String" and "string"
doesn't tell us much.  These strings are extremely short, and a few
more cases would be useful.

Please change your units to something more sensible.  I suggest
nanoseconds.

Thanks,

Andrew.



More information about the core-libs-dev mailing list