MCPcopy Create free account
hub / github.com/apache/arrow-rs / decimal256_array_from_vec

Function decimal256_array_from_vec

arrow/benches/array_from.rs:109–118  ·  view source on GitHub ↗
(array: &[Option<i256>])

Source from the content-addressed store, hash-verified

107}
108
109fn decimal256_array_from_vec(array: &[Option<i256>]) {
110 hint::black_box(
111 array
112 .iter()
113 .copied()
114 .collect::<Decimal256Array>()
115 .with_precision_and_scale(70, 2)
116 .unwrap(),
117 );
118}
119
120fn array_from_vec_decimal_benchmark(c: &mut Criterion) {
121 // bench decimal32 array

Callers 1

Calls 2

iterMethod · 0.45

Tested by

no test coverage detected