Skip to content

Commit 50b8614

Browse files
nicole-grausMauroToscanogabrielbosiojotabulacios
authored
Add field element comparison script (#504)
* bench vs others * Standarize guest * Fix decimals * Benchmark vs sp1 * Add lambda program * Remove stray blank line from .gitignore * Apply suggestion from @gabrielbosio Co-authored-by: Gabriel Bosio <38794644+gabrielbosio@users.noreply.github.com> * Add instruments * Fix syscall number * Add runtime private inputs, nightly CI workflow, and 500M step projection to bench_vs * save work * Fix bench_vs 5x projection inflation and add --steps flag for nightly 1M/2M/4M/8M benchmarks * Switch bench_vs projection to measured cycles and add --cycles CLI flag * Fix grep pipefail in bench_vs/run.sh by switching to sed * Add main field element comparison script for Lambda VM vs SP1 v5/v6 * Add aux elements counting to lambda an sp1 v5 * Fix aux element counting in sp1, guard Lambda VM CLI failure, clarify metric descriptions and ratio legend * Fix doc, pin version, add test * check division by zero and extension degree in v5 * Exclude preprocessed columns to match sp1 * Destructure traces * Change debug_assert fo assert, add verify call for parity with v6, and rename aux output label * Use usr/bin/env bash * Remove empty build.rs and unused rust-toolchain, and add --lambda-only, --sp1-only, --report-dir, --no-color flags * exclude lines of code --------- Co-authored-by: MauroFab <maurotoscano2@gmail.com> Co-authored-by: Mauro Toscano <12560266+MauroToscano@users.noreply.github.com> Co-authored-by: Gabriel Bosio <38794644+gabrielbosio@users.noreply.github.com> Co-authored-by: jotabulacios <jbulacios@fi.uba.ar>
1 parent d706420 commit 50b8614

15 files changed

Lines changed: 6294 additions & 4 deletions

File tree

.github/workflows/bench-vs-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
- name: Install SP1 toolchain
3434
run: |
3535
export PATH="$HOME/.cargo/bin:$HOME/.sp1/bin:$PATH"
36-
if ! cargo prove --version >/dev/null 2>&1; then
36+
if ! cargo prove --version 2>/dev/null | grep -qE '\b6\.0\.1\b'; then
3737
curl -L https://sp1up.succinct.xyz | bash
3838
export PATH="$HOME/.sp1/bin:$PATH"
39-
sp1up
39+
sp1up --version v6.0.1
4040
fi
4141
cargo prove --version
4242

bench_vs/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Benchmark: Lambda VM vs SP1 v6 — Fibonacci proving time comparison.
33
#
44
# Usage: ./bench_vs/run.sh [-n 1000 50000 100000 | --steps 1000000 2000000]

0 commit comments

Comments
 (0)