This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new dc45d7d188 chore: add cast_decimal benchmark (#6850)
dc45d7d188 is described below

commit dc45d7d18857941c12082c0a6288048baf0c83ee
Author: Andy Grove <[email protected]>
AuthorDate: Tue Dec 10 21:39:31 2024 -0700

    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 ec7990d3d7..5c4fcff13d 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)))
     });

Reply via email to