This commit is contained in:
wenshao 2025-02-22 09:25:27 +08:00
parent 6d4de2cfc2
commit 66e06f7704

View File

@ -95,17 +95,17 @@ public class BytesAsciiCheck {
bh.consume(com.alibaba.fastjson2.util.IOUtils.indexOfSlash(bytes, 0, bytes.length));
}
// @Benchmark
@Benchmark
public void indexOfSlashV(Blackhole bh) throws Throwable {
bh.consume(com.alibaba.fastjson2.util.IOUtils.indexOfSlashV(bytes, 0, bytes.length));
}
// @Benchmark
@Benchmark
public void indexOfChar(Blackhole bh) throws Throwable {
bh.consume(indexOfChar(bytes, '\'', 0, bytes.length));
}
// @Benchmark
@Benchmark
public void indexOfString(Blackhole bh) throws Throwable {
bh.consume(str.indexOf('\\'));
}