mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 13:24:24 +00:00
23 lines
579 B
Diff
23 lines
579 B
Diff
diff --git a/benches/kurtosis.rs b/benches/kurtosis.rs
|
|
index e483917..68c64fd 100644
|
|
--- a/benches/kurtosis.rs
|
|
+++ b/benches/kurtosis.rs
|
|
@@ -16,6 +16,7 @@ fn initialize_vec() -> Vec<f64> {
|
|
values
|
|
}
|
|
|
|
+#[cfg(feature = "libm")]
|
|
fn bench_kurtosis(b: &mut Bencher) {
|
|
let values = initialize_vec();
|
|
b.iter(|| {
|
|
@@ -32,5 +33,9 @@ fn bench_moments(b: &mut Bencher) {
|
|
});
|
|
}
|
|
|
|
+#[cfg(feature = "libm")]
|
|
benchmark_group!(benches, bench_kurtosis, bench_moments);
|
|
+#[cfg(not(feature = "libm"))]
|
|
+benchmark_group!(benches, bench_moments);
|
|
+
|
|
benchmark_main!(benches);
|