mirror of
https://github.com/babybear-labs/benchmark.git
synced 2026-01-10 07:47:55 -05:00
update readme
This commit is contained in:
13
sp1/Makefile
13
sp1/Makefile
@@ -1,13 +0,0 @@
|
||||
# TODO: Separate out run and build, store run logs in prove.log instead of cycles.txt
|
||||
export RUST_LOG=info
|
||||
|
||||
# Rust benchmarks
|
||||
nth-prime-rust = algos/nth_prime
|
||||
|
||||
all:
|
||||
@echo "Running all benchmarks..."
|
||||
make run-nth-prime
|
||||
|
||||
run-nth-prime:
|
||||
@echo "Running nth-prime benchmark..."
|
||||
cd ${nth-prime-rust}/native_sp1/script; SP1_PROVER=network cargo run --release > cycles.txt
|
||||
@@ -1,5 +1,9 @@
|
||||
# SP1
|
||||
|
||||
## Quickstart
|
||||
|
||||
Go to each benchmark folder. Then go to `script` folder. Run.
|
||||
`cargo run --release -- --prove --n 10`
|
||||
|
||||
|
||||
Two different execution environment.
|
||||
|
||||
Binary file not shown.
@@ -19,7 +19,7 @@ pub fn main() {
|
||||
let n = sp1_zkvm::io::read::<u32>();
|
||||
|
||||
// Compute the n'th fibonacci number using a function from the workspace lib crate.
|
||||
let input = &[5u8; 20000];
|
||||
let input = &[5u8; 100];
|
||||
let a = sha2(input);
|
||||
|
||||
// Encode the public values of the program.
|
||||
|
||||
Reference in New Issue
Block a user