@Override
        public int compare(final byte[] buffer1, final byte[] buffer2) {
            return compare(buffer1, 0, buffer1.length, buffer2, 0, buffer2.length);
        }
This method has better performance than String#String(byte[], Charset),
See the benchmark class: Utf8Benchmark for details.
jraft-core/src/main/java/com/alipay/sofa/jraft/util/BytesUtil.java