viirya commented on PR #3134:
URL: https://github.com/apache/arrow-rs/pull/3134#issuecomment-1328366171
I ran a simple benchmark which calls `add` or `add_mut` on two primitive
arrays, e.g.,
```rust
let mut arr_a = create_primitive_array::<Float32Type>(5120000, 0.0);
for _ in 0..10 {
let arr_b = create_primitive_array::<Float32Type>(5120000, 0.0);
// arr_a = add(&arr_a, &arr_b).unwrap();
arr_a = add_mut(arr_a, &arr_b).unwrap().unwrap();
}
```
```
array add time: [675.93 ms 676.09 ms 676.28 ms]
change: [-3.2262% -3.0312% -2.8816%] (p = 0.00 <
0.05)
Performance has improved.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]