(array: &[Option<i256>])
| 107 | } |
| 108 | |
| 109 | fn 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 | |
| 120 | fn array_from_vec_decimal_benchmark(c: &mut Criterion) { |
| 121 | // bench decimal32 array |
no test coverage detected