class StringUtilsBenchmark {

    @Benchmark
    public Long measure_Long_parseLong_valid() {
        try {
            return Long.parseLong("1658149133924");
        } catch (NumberFormatException ex) {
            return null;
        }
    }

    @Benchmark
    public Long measure_Long_parseLong_invalid() {
        try {
            return Long.parseLong("2022-07-18");
        } catch (NumberFormatException ex) {
            return null;
        }
    }

    @Benchmark
    public Long measure_StringUtils_tryParseLong_valid() {
        long[] out = StringUtils.PARSE_LONG_BUFFER.get();
        if (StringUtils.tryParseLong("1658149133924", out)) {
            return out[0];
        }
        return null;
    }

    @Benchmark
    public Long measure_StringUtils_tryParseLong_invalid() {<FILL_FUNCTION_BODY>}
}

        long[] out = StringUtils.PARSE_LONG_BUFFER.get();
        if (StringUtils.tryParseLong("2022-07-18", out)) {
            return out[0];
        }
        return null;
    
<no_super_class>