arnaucube
arnaucube/phantom-zonePublic Self-hosted repository
modfiy benches a bit
Janmajaya Mall janmajayamall@protonmail.com
Tue, 11 Jun 2024 14:28:35 +0530
commit

a4a8e8930c163b0178c32b9e3560457413b0f971

parent

590a222c92dd55b1f28020ec8ad5ce41533752a0

4 files changed, 7 insertions(+), 7 deletions(-)

jump to
M benches/modulus.rs → benches/modulus.rs

@@ -85,7 +85,7 @@ let a0 = (&mut rng).sample_iter(dist).take(ring_size).collect_vec();

let a1 = (&mut rng).sample_iter(dist).take(ring_size).collect_vec(); let a2 = (&mut rng).sample_iter(dist).take(ring_size).collect_vec(); - let d = 2; + let d = 1; let a0_matrix = (0..d) .into_iter() .map(|_| (&mut rng).sample_iter(dist).take(ring_size).collect_vec())
M benches/ntt.rs → benches/ntt.rs

@@ -34,7 +34,7 @@ let a = (&mut rng)

.sample_iter(Uniform::new(0, prime)) .take(ring_size) .collect_vec(); - let d = 3; + let d = 2; let a_matrix = (0..d) .map(|_| { (&mut rng)
M src/bool/noise.rs → src/bool/noise.rs

@@ -103,9 +103,9 @@

// let mut stats = Stats::new(); for _ in 0..1000 { - let now = std::time::Instant::now(); + // let now = std::time::Instant::now(); let c_out = evaluator.xor(&c_m0, &c_m1, &runtime_server_key); - println!("Gate time: {:?}", now.elapsed()); + // println!("Gate time: {:?}", now.elapsed()); // mp decrypt let decryption_shares = cks
M src/pbs.rs → src/pbs.rs

@@ -192,7 +192,7 @@ partb_trivial_rlwe[embed_factor * index] = *v;

}); } - // let now = std::time::Instant::now(); + let now = std::time::Instant::now(); // blind rotate blind_rotation( &mut trivial_rlwe_test_poly,

@@ -208,7 +208,7 @@ pbs_info.modop_rlweq(),

pbs_info, pbs_key, ); - // println!("Blind rotation time: {:?}", now.elapsed()); + println!("Blind rotation time: {:?}", now.elapsed()); // sample extract sample_extract(lwe_in, &trivial_rlwe_test_poly, pbs_info.modop_rlweq(), 0);

@@ -372,7 +372,7 @@ ntt_op,

mod_op, ); }); - // println!("Auto count: {count}"); + println!("Auto count: {count}"); } fn mod_switch_odd(v: f64, from_q: f64, to_q: f64) -> usize {