Skip to content

Commit

Permalink
chore: add cast_decimal benchmark (apache#6850)
Browse files Browse the repository at this point in the history
* add cast_decimal bench

* format

* address feedback
  • Loading branch information
andygrove authored Dec 11, 2024
1 parent 08ac587 commit dc45d7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arrow/benches/cast_kernels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
});
Expand Down

0 comments on commit dc45d7d

Please sign in to comment.