resurrect benches

Because these require nightly, CI isn't configured to fail if they're
broken. And they have been broken since the conversion to hyper 1.x.
This commit is contained in:
Scott Lamb
2025-03-06 21:32:01 -08:00
parent e204fe0864
commit 3cc9603ff3
3 changed files with 106 additions and 63 deletions

View File

@@ -659,10 +659,12 @@ mod bench {
let data = include_bytes!("testdata/video_sample_index.bin");
b.bytes = data.len() as u64;
b.iter(|| {
let mut it = SampleIndexIterator::default();
while it.next(data).unwrap() {}
assert_eq!(30104460, it.pos);
assert_eq!(5399985, it.start_90k);
for _i in 0..100 {
let mut it = SampleIndexIterator::default();
while it.next(data).unwrap() {}
assert_eq!(30104460, it.pos);
assert_eq!(5399985, it.start_90k);
}
});
}
}