modfiy benches a bit

This commit is contained in:
Janmajaya Mall
2024-06-11 14:28:35 +05:30
parent 590a222c92
commit a4a8e8930c
4 changed files with 7 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ fn benchmark(c: &mut Criterion) {
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())

View File

@@ -34,7 +34,7 @@ fn benchmark(c: &mut Criterion) {
.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)