Skip to content

Commit 7a77829

Browse files
committed
Fix typos in benchmarking code
1 parent 7757bf0 commit 7a77829

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

benches/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ CC = gcc
22
CFLAGS = -Wall -Wextra -O3 -march=native
33
LIBS = -lfftw3 -lm
44

5-
program: main.c
5+
bench_fftw: main.c
66
$(CC) $(CFLAGS) -o bench_fftw main.c $(LIBS)
77

88
clean:
9-
rm -f program
9+
rm -f bench_fftw
1010

examples/benchmark.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ fn benchmark_fft(n: usize) {
1010
let mut imags = vec![0.0; big_n];
1111
gen_random_signal(&mut reals, &mut imags);
1212

13-
// let now = std::time::Instant::now();
13+
let now = std::time::Instant::now();
1414
fft_dif(&mut reals, &mut imags);
15-
// let elapsed = now.elapsed().as_micros();
16-
// println!("{elapsed}");
15+
let elapsed = now.elapsed().as_micros();
16+
println!("{elapsed}");
1717
}
1818

1919
fn main() {

0 commit comments

Comments
 (0)