-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: Streamline matrix multiply & some zip_with instances - Reworked vector and matrix multiplication operations for improved memory use in `sparse.rs`. - Modified `batch_eval_prove` function in `snark.rs` for more cleaner assertion checks related to polynomial sizes. - Enhanced `InnerSumcheckInstance` within `setup` function for parallel computation in `ppsnark.rs`. * refactor: Streamline transcript absorption in Spartan batched code - Optimized the transcript insertion process in `batched.rs` by replacing loop-absorbing RelaxedR1CSInstances with a single absorb statement * refactor: Refactor 'claims_outer' and related functions in BatchedRelaxedR1CSSNARK - Refactored the structure of `claims_outer` in `BatchedRelaxedR1CSSNARK` from a tuple of vectors to a vector of tuples, streamlining its usage and unpacking. - Adjusted the `prove` and `verify` functions' code in accordance with the new `claims_outer` implementation. - Enhanced the extraction and manipulation of `ABCE_evals` in the `verify` function resulting in simpler and more efficient usage. * fix: simplify inner final claim * refactor: Optimize Spartan batch evaluation and polynomial computation - Refined tau polynomial definitions using `PowPolynomial::squares` function to improve efficiency. - uses in verify the same efficient method as exists in proving. * fix: streamline usage of PowPolynomial * refactor: Enhance efficiency of generating power polynomials - Introduced `#[must_use]` annotation to the `squares` function in `power.rs` to ensure the returned result is handled appropriately. - avoid re-computing powers of tau over and over in batched_ppsnark * fix: one forgotten instance of the poly_X refactor * refactor: slightly simplify padding * fix: remove misleading comment
- Loading branch information
1 parent
efaf628
commit f1c6c19
Showing
10 changed files
with
116 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f1c6c19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks
Table of Contents
Overview
This benchmark report shows the Arecibo GPU benchmarks.
NVIDIA L4
Intel(R) Xeon(R) CPU @ 2.20GHz
32 vCPUs
125 GB RAM
Workflow run: https://github.com/lurk-lab/arecibo/actions/runs/7874209603
Benchmark Results
RecursiveSNARK-NIVC-2
ref=efaf628
ref=f1c6c19
Prove-NumCons-6540
53.04 ms
(✅ 1.00x)53.10 ms
(✅ 1.00x slower)Verify-NumCons-6540
33.00 ms
(✅ 1.00x)32.75 ms
(✅ 1.01x faster)Prove-NumCons-1028888
344.76 ms
(✅ 1.00x)342.84 ms
(✅ 1.01x faster)Verify-NumCons-1028888
256.85 ms
(✅ 1.00x)252.76 ms
(✅ 1.02x faster)CompressedSNARK-NIVC-Commitments-2
ref=efaf628
ref=f1c6c19
Prove-NumCons-6540
13.98 s
(✅ 1.00x)13.93 s
(✅ 1.00x faster)Verify-NumCons-6540
78.31 ms
(✅ 1.00x)77.39 ms
(✅ 1.01x faster)Prove-NumCons-1028888
110.33 s
(✅ 1.00x)110.97 s
(✅ 1.01x slower)Verify-NumCons-1028888
772.37 ms
(✅ 1.00x)770.79 ms
(✅ 1.00x faster)Made with criterion-table