Skip to content

Commit

Permalink
chore(bench): format core_crypto benchmark names to ease parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
soonum committed Feb 27, 2024
1 parent 79dc101 commit 59664e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tfhe/benches/core_crypto/ks_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn keyswitch<Scalar: UnsignedTorus + CastInto<usize> + Serialize>(criterion: &mu
tfhe::core_crypto::prelude::CiphertextModulus::new_native(),
);

let id = format!("{bench_name}_{name}");
let id = format!("{bench_name}::{name}");
{
bench_group.bench_function(&id, |b| {
b.iter(|| {
Expand Down Expand Up @@ -251,7 +251,7 @@ mod cuda {
}
stream.synchronize();

let id = format!("{bench_name}_{name}");
let id = format!("{bench_name}::{name}");
{
bench_group.bench_function(&id, |b| {
b.iter(|| {
Expand Down
12 changes: 6 additions & 6 deletions tfhe/benches/core_crypto/pbs_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fn mem_optimized_pbs<Scalar: UnsignedTorus + CastInto<usize> + Serialize>(c: &mu
.unaligned_bytes_required(),
);

let id = format!("{bench_name}_{name}");
let id = format!("{bench_name}::{name}");
{
bench_group.bench_function(&id, |b| {
b.iter(|| {
Expand Down Expand Up @@ -299,7 +299,7 @@ fn multi_bit_pbs<
tfhe::core_crypto::prelude::CiphertextModulus::new_native(),
);

let id = format!("{bench_name}_{name}_parallelized");
let id = format!("{bench_name}::{name}::parallelized");
bench_group.bench_function(&id, |b| {
b.iter(|| {
multi_bit_programmable_bootstrap_lwe_ciphertext(
Expand Down Expand Up @@ -388,7 +388,7 @@ fn multi_bit_deterministic_pbs<
tfhe::core_crypto::prelude::CiphertextModulus::new_native(),
);

let id = format!("{bench_name}_{name}_parallelized");
let id = format!("{bench_name}::{name}::parallelized");
bench_group.bench_function(&id, |b| {
b.iter(|| {
multi_bit_deterministic_programmable_bootstrap_lwe_ciphertext(
Expand Down Expand Up @@ -498,7 +498,7 @@ fn pbs_throughput<Scalar: UnsignedTorus + CastInto<usize> + Sync + Send + Serial
);

for chunk_size in [1, 16, 32, 64, 128, 256, 512] {
let id = format!("{bench_name}_{name}_{chunk_size}chunk");
let id = format!("{bench_name}::{name}::{chunk_size}chunk");
{
bench_group.bench_function(&id, |b| {
b.iter(|| {
Expand Down Expand Up @@ -680,7 +680,7 @@ mod cuda {
}
stream.synchronize();

let id = format!("{bench_name}_{name}");
let id = format!("{bench_name}::{name}");
{
bench_group.bench_function(&id, |b| {
b.iter(|| {
Expand Down Expand Up @@ -802,7 +802,7 @@ mod cuda {
}
stream.synchronize();

let id = format!("{bench_name}_{name}");
let id = format!("{bench_name}::{name}");
bench_group.bench_function(&id, |b| {
b.iter(|| {
cuda_multi_bit_programmable_bootstrap_lwe_ciphertext(
Expand Down

0 comments on commit 59664e8

Please sign in to comment.