class BytesAsciiCheck {
    static byte[] bytes;

    static {
        try {
            InputStream is = EishayParseBinaryArrayMapping.class.getClassLoader().getResourceAsStream("data/eishay.json");
            String str = IOUtils.toString(is, "UTF-8");
            bytes = str.getBytes();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Benchmark
    public void handler(Blackhole bh) throws Throwable {
        bh.consume(
                JDKUtils.METHOD_HANDLE_HAS_NEGATIVE.invoke(bytes, 0, bytes.length)
        );
    }

    @Benchmark
    public void lambda(Blackhole bh) throws Throwable {
        bh.consume(
                JDKUtils.PREDICATE_IS_ASCII.test(bytes)
        );
    }

    @Benchmark
    public void direct(Blackhole bh) throws Throwable {
        bh.consume(hasNegatives(bytes, 0, bytes.length));
    }

    @Benchmark
    public void direct8(Blackhole bh) throws Throwable {
        bh.consume(hasNegatives_8(bytes, 0, bytes.length));
    }

    public static boolean hasNegatives(byte[] ba, int off, int len) {
        for (int i = off; i < off + len; i++) {
            if (ba[i] < 0) {
                return true;
            }
        }
        return false;
    }

    public static boolean hasNegatives_8(byte[] bytes, int off, int len) {<FILL_FUNCTION_BODY>}

    public static void main(String[] args) throws Exception {
        Options options = new OptionsBuilder()
                .include(BytesAsciiCheck.class.getName())
                .mode(Mode.Throughput)
                .timeUnit(TimeUnit.MILLISECONDS)
                .warmupIterations(3)
                .forks(1)
                .build();
        new Runner(options).run();
    }
}

        int i = off;
        while (i + 8 <= off + len) {
            if ((UNSAFE.getLong(bytes, ARRAY_BYTE_BASE_OFFSET + i) & 0x8080808080808080L) != 0) {
                return true;
            }
            i += 8;
        }

        for (; i < off + len; i++) {
            if (bytes[i] < 0) {
                return true;
            }
        }
        return false;
    
<no_super_class>