Skip to content

Benchmarks for zkemail noir implementation in browser

Notifications You must be signed in to change notification settings

Mach-34/zkemail.nr-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZKEmail.nr Benchmarks

Benchmarking repository for ZKEmail.nr

Plonk (Browser) Honk (Browser) Plonk (NodeJS) Honk (NodeJS) Plonk (Native) Honk (Native)
Cold Start 39.94s 16.80s 25.87s 9.32s N/A N/A
10x avg 18.93s 9.67s 14.63s 5.87s 6.81s 2.51s
Witcalc 2.27s <--- 1.37s <--- 2.43s <---

Keep in mind that most of cold start cost can be hidden from user if proving backend is initialized eagerly on page load before user reaches proving UX

Running Benchmarks yourself

REQUIRES NARGO v0.35.0 (2a0d211b92d002fa75855d4ba27267f8892dd52c) REQUIRES BB v0.57.0

Run ./artifact.sh to recompile the circuit to start off.

Browser (Wasm)

cd browser
yarn
yarn dev
# Click the buttons to prove plonk or honk and see output

NodeJS (Wasm)

cd node
yarn
yarn start

Native

## If you want to rebuild the Prover.toml do this, otherwise skip...
cd browser
yarn
yarn gen_prover_toml
cd ..

# Run Plonk Test (1 iteration)
./native_plonk.sh

# Run Honk Test (1 iteration)
./native_honk.sh

About

Benchmarks for zkemail noir implementation in browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published