Skip to content

Commit

Permalink
chore(fft): make bench naming easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTDrinker committed Nov 21, 2024
1 parent 2d9c135 commit 40dd2a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tfhe-fft/benches/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,22 +163,22 @@ pub fn bench_ffts(c: &mut Criterion) {
let ordered =
tfhe_fft::ordered::Plan::new(n, tfhe_fft::ordered::Method::Measure(bench_duration));

let bench_id = format!("concrete-fwd-{n}");
let bench_id = format!("tfhe-ordered-fwd-{n}");
c.bench_function(&bench_id, |b| b.iter(|| ordered.fwd(dst, stack.rb_mut())));
write_to_json(&bench_id, "concrete-fwd", n);
write_to_json(&bench_id, "tfhe-ordered-fwd", n);
}

let bench_id = format!("unordered-fwd-{n}");
let bench_id = format!("tfhe-unordered-fwd-{n}");
c.bench_function(&bench_id, |b| {
b.iter(|| unordered.fwd(dst, stack.rb_mut()));
});
write_to_json(&bench_id, "unordered-fwd", n);
write_to_json(&bench_id, "tfhe-unordered-fwd", n);

let bench_id = format!("unordered-inv-{n}");
let bench_id = format!("tfhe-unordered-inv-{n}");
c.bench_function(&bench_id, |b| {
b.iter(|| unordered.inv(dst, stack.rb_mut()));
});
write_to_json(&bench_id, "unordered-inv", n);
write_to_json(&bench_id, "tfhe-unordered-inv", n);

// memcpy
let bench_id = format!("memcpy-{n}");
Expand All @@ -189,7 +189,7 @@ pub fn bench_ffts(c: &mut Criterion) {
});
write_to_json(&bench_id, "memcpy", n);

let bench_id = format!("fwd-monomial-{n}");
let bench_id = format!("tfhe-unordered-fwd-monomial-{n}");
c.bench_function(&bench_id, |b| {
let mut degree = 0;
b.iter(|| {
Expand All @@ -200,7 +200,7 @@ pub fn bench_ffts(c: &mut Criterion) {
unordered.fwd_monomial(degree, dst);
})
});
write_to_json(&bench_id, "fwd-monomial", n);
write_to_json(&bench_id, "tfhe-unordered-fwd-monomial", n);
}
}

Expand Down

0 comments on commit 40dd2a6

Please sign in to comment.