Skip to content

Commit e537df3

Browse files
committed
Benchmark using e from consts module
1 parent 6199a2b commit e537df3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

benches/bench.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
// cargo bench
22

33
#![feature(test)]
4-
#![allow(
5-
clippy::approx_constant,
6-
clippy::excessive_precision,
7-
clippy::unreadable_literal
8-
)]
94

105
extern crate test;
116

@@ -54,10 +49,10 @@ macro_rules! benches {
5449
benches! {
5550
bench_0_f64(0f64),
5651
bench_short_f64(0.1234f64),
57-
bench_e_f64(2.718281828459045f64),
52+
bench_e_f64(f64::consts::E),
5853
bench_max_f64(f64::MAX),
5954
bench_0_f32(0f32),
6055
bench_short_f32(0.1234f32),
61-
bench_e_f32(2.718281828459045f32),
56+
bench_e_f32(f32::consts::E),
6257
bench_max_f32(f32::MAX),
6358
}

0 commit comments

Comments
 (0)