-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add missing Debug implementations (#282)
* refactor: use zip_with in batch evaluation - Refactored iterated zip operations in batch evaluation verification function in `src/spartan/snark.rs` - Used `zip_with!` macro to enhance code readability and maintainability * refactor: slightly faster evaluation - Enhanced the efficiency of polynomial evaluation in `prove` function in `src/spartan/snark.rs` by eliminating needless cloning. * feat: Implement Debug trait across various structs and traits - `Debug` trait added across multiple files to enhance log and error handling capacity; applies to structures like `ProverKey`, `VerifierKey`, `R1CSWithArity`, `NovaPublicParameters`, `CompressedSNARK`, and others. - Expanded `Debug` trait implementation to more complex structures like `CircuitDigests`, `PublicParams`, associated types in `ROTrait` and `ROCircuitTrait`, and several structures in the `spartan` and `gadgets` module. - An additional project-wide compilation check for missing `Debug` implementations has been added to cargo build settings.
- Loading branch information
1 parent
5da330e
commit 1f36390
Showing
13 changed files
with
38 additions
and
32 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
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
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
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
1f36390
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/7659105151
Benchmark Results
RecursiveSNARK-NIVC-2
ref=5da330e
ref=1f36390
Prove-NumCons-6540
52.77 ms
(✅ 1.00x)52.66 ms
(✅ 1.00x faster)Verify-NumCons-6540
32.92 ms
(✅ 1.00x)32.99 ms
(✅ 1.00x slower)Prove-NumCons-1028888
342.46 ms
(✅ 1.00x)341.96 ms
(✅ 1.00x faster)Verify-NumCons-1028888
251.83 ms
(✅ 1.00x)256.53 ms
(✅ 1.02x slower)CompressedSNARK-NIVC-Commitments-2
ref=5da330e
ref=1f36390
Prove-NumCons-6540
14.06 s
(✅ 1.00x)14.03 s
(✅ 1.00x faster)Verify-NumCons-6540
77.75 ms
(✅ 1.00x)78.38 ms
(✅ 1.01x slower)Prove-NumCons-1028888
110.17 s
(✅ 1.00x)111.66 s
(✅ 1.01x slower)Verify-NumCons-1028888
773.88 ms
(✅ 1.00x)769.85 ms
(✅ 1.01x faster)Made with criterion-table