Skip to content

Commit 81d82bc

Browse files
committed
chore(bench): bench 64 bits for ZKs
1 parent 7afe9b7 commit 81d82bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tfhe/benches/integer/zk_pke.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn pke_zk_proof(c: &mut Criterion) {
5353
let mut rng = rand::thread_rng();
5454
metadata.fill_with(|| rng.gen());
5555

56-
for bits in [640usize, 1280, 4096] {
56+
for bits in [64usize, 640, 1280, 4096] {
5757
assert_eq!(bits % 64, 0);
5858
// Packing, so we take the message and carry modulus to compute our block count
5959
let num_block = 64usize.div_ceil(
@@ -138,7 +138,7 @@ fn pke_zk_verify(c: &mut Criterion, results_file: &Path) {
138138
let mut rng = rand::thread_rng();
139139
metadata.fill_with(|| rng.gen());
140140

141-
for bits in [640usize, 1280, 4096] {
141+
for bits in [64usize, 640, 1280, 4096] {
142142
assert_eq!(bits % 64, 0);
143143
// Packing, so we take the message and carry modulus to compute our block count
144144
let num_block = 64usize.div_ceil(

tfhe/web_wasm_parallel_tests/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ async function compactPublicKeyZeroKnowledgeBench() {
669669
[ZkComputeLoad.Verify]: "compute_load_verify",
670670
};
671671

672-
let bits_to_encrypt = [640, 1280, 4096];
672+
let bits_to_encrypt = [64, 640, 1280, 4096];
673673

674674
let encrypt_counts = bits_to_encrypt.map((v) => v / 64);
675675

0 commit comments

Comments
 (0)