We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7757bf0 commit 7a77829Copy full SHA for 7a77829
benches/Makefile
@@ -2,9 +2,9 @@ CC = gcc
2
CFLAGS = -Wall -Wextra -O3 -march=native
3
LIBS = -lfftw3 -lm
4
5
-program: main.c
+bench_fftw: main.c
6
$(CC) $(CFLAGS) -o bench_fftw main.c $(LIBS)
7
8
clean:
9
- rm -f program
+ rm -f bench_fftw
10
examples/benchmark.rs
@@ -10,10 +10,10 @@ fn benchmark_fft(n: usize) {
let mut imags = vec![0.0; big_n];
11
gen_random_signal(&mut reals, &mut imags);
12
13
- // let now = std::time::Instant::now();
+ let now = std::time::Instant::now();
14
fft_dif(&mut reals, &mut imags);
15
- // let elapsed = now.elapsed().as_micros();
16
- // println!("{elapsed}");
+ let elapsed = now.elapsed().as_micros();
+ println!("{elapsed}");
17
}
18
19
fn main() {
0 commit comments