fix: Move a vec allocation outside of the benchmarked code
This is consistent with the rest of the decode benchmarks and I think
matches the benchmark intentions best.
@@ -213,8 +213,8 @@ fn float_decode_cpu(c: &mut Criterion) {
BenchmarkId::from_parameter(batch_size),
&decoded,
|b, decoded| {
- b.iter(|| {
let mut decoded_mut = Vec::with_capacity(decoded.len());
+ b.iter(|| {
decoded_mut.truncate(0);
delorean::encoders::float::decode(&encoded, &mut decoded_mut).unwrap();
});
