Skip to content

Latest commit

 

History

History
92 lines (73 loc) · 1.32 KB

README.md

File metadata and controls

92 lines (73 loc) · 1.32 KB

origo-bench

Dependencies

Install Rust

curl https://sh.rustup.rs | sh
. "$HOME"/.cargo/env
rustup install nightly-2024-10-28
rustup component add rust-src --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu

Install Dependency

sudo apt-get install libssl-dev
sudo apt-get install pkg-config
sudo apt-get install clang
sudo apt-get install protobuf-compiler

Download Circuit Files

cd 3rd/web-prover
make artifacts

Patch

bash ./patch_code.sh origo.patch

Or

bash ./patch_code.sh origo-memory.patch

Note: the first patch will not profiler memory usage. If you need to profiler memory usage, you should use the second patch file.

Compile

Native on x86

bash ./build_native_x86.sh

Native on arm

bash ./build_native_arm.sh

Wasm on x86

bash ./build_wasm_x86.sh

Native Bench(x86 or arm)

Start Mock Server

bash mock_server.sh

Start Notary Server

bash notary_server.sh

Start Bench Client

bash bench.sh 38081 lo

Wasm Bench

Start Mock Server

bash mock_server.sh

Start Notary Server

bash notary_server.sh

Start Http Sever

bash http_server.sh

Start Bench Client

bash bench.sh 38081 lo wasm