
    b.iter(|| {
        let res = read_i64(&mut &buf[..]).unwrap();
        test::black_box(res);
    });
}

#[bench]
fn from_i64_read_int(b: &mut Bencher) {
    let buf = [0xd3, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff];

    b.iter(|| {
        let res: i64 = read_int(&mut &buf[..]).unwrap();
        test::black_box(res);