Optimized ZK provers
Install rustup and cargo (require curl
):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install nightly:
rustup toolchain install nightly
Install cargo-c (require openssl
and pkg-config
):
cargo install cargo-c
The package compiles with GHC 9.6.3 and Cabal 3.10.2.1.
Running tests:
cabal run wrapper-test
Run benchmark:
cabal run msm
Before you need install ghc-prof-flamegraph
. Remember path to executable file
cabal install ghc-prof-flamegraph
Run benchmark with .prof generating
cabal run msm --enable-profiling -- +RTS -p
Run generating flamegraph. Make sure the path to ghc-prof-flamegraph
is correct
~/.local/bin/ghc-prof-flamegraph msm.prof
Flamegraph will be in msm.svg
file
To run benchmark install cargo-criterion
cargo install cargo-criterion
And run in rust-wrapper
cargo criterion --bench msm_bench
For generate flamegraph install flamegraph (require perf
)
cargo install flamegraph
And generate flamegraph from bench (in rust-wrapper
):
cargo flamegraph --bench msm_bench