From 4bf78bb9785ecc559406f8a6970025f884756399 Mon Sep 17 00:00:00 2001 From: Alex Vlasov Date: Sat, 13 Jul 2019 21:54:06 +0300 Subject: [PATCH] finish with prefetch --- Cargo.toml | 1 + tests/mimc.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aa1d194..fb2d2e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ byteorder = "1" futures-cpupool = {version = "0.1", optional = true} num_cpus = {version = "1", optional = true} crossbeam = {version = "0.7.1", optional = true} + prefetch = {version = "0.2", optional = true} web-sys = {version = "0.3.17", optional = true, features = ["console", "Performance", "Window"]} diff --git a/tests/mimc.rs b/tests/mimc.rs index b80cb7c..623c1ee 100644 --- a/tests/mimc.rs +++ b/tests/mimc.rs @@ -38,9 +38,9 @@ use bellman_ce::groth16::{ verify_proof, }; -// const MIMC_ROUNDS: usize = 322; +const MIMC_ROUNDS: usize = 322; -const MIMC_ROUNDS: usize = 1000000; +// const MIMC_ROUNDS: usize = 1000000; /// This is an implementation of MiMC, specifically a /// variant named `LongsightF322p3` for BLS12-381.