Fix moments benchmark
This commit is contained in:
parent
34eddeec1e
commit
b010d0cae6
@ -33,7 +33,7 @@ fn bench_kurtosis(b: &mut Bencher) {
|
|||||||
fn bench_moments(b: &mut Bencher) {
|
fn bench_moments(b: &mut Bencher) {
|
||||||
let values = initialize_vec();
|
let values = initialize_vec();
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
let m: average::Moments = values.iter().map(|x| *x).collect();
|
let m: average::Moments4 = values.iter().map(|x| *x).collect();
|
||||||
m
|
m
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user