From dc45d7d18857941c12082c0a6288048baf0c83ee Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Tue, 10 Dec 2024 21:39:31 -0700 Subject: [PATCH] chore: add cast_decimal benchmark (#6850) * add cast_decimal bench * format * address feedback --- arrow/benches/cast_kernels.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arrow/benches/cast_kernels.rs b/arrow/benches/cast_kernels.rs index ec7990d3d764..5c4fcff13dee 100644 --- a/arrow/benches/cast_kernels.rs +++ b/arrow/benches/cast_kernels.rs @@ -250,6 +250,9 @@ fn add_benchmark(c: &mut Criterion) { c.bench_function("cast decimal128 to decimal128 512", |b| { b.iter(|| cast_array(&decimal128_array, DataType::Decimal128(30, 5))) }); + c.bench_function("cast decimal128 to decimal128 512 lower precision", |b| { + b.iter(|| cast_array(&decimal128_array, DataType::Decimal128(6, 5))) + }); c.bench_function("cast decimal128 to decimal256 512", |b| { b.iter(|| cast_array(&decimal128_array, DataType::Decimal256(50, 5))) });