-
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: Optimize polynomial operations with parallel scan (#330)
- Optimized performance by introducing parallel scans methods across multiple components, focusing on the `rlc<T, F>` method and the `powers` function. - Switched from `DoubleEndedIteratorExt` to `IndexedParallelIteratorExt` across several files for iterator processing in parallel, and modified corresponding imports accordingly. - Left `DoubleEndedIteratorExt` as an option, since it's more efficient on small polynomials, - Added `rayon-scan` to general dependencies
- Loading branch information
1 parent
e1a69d4
commit 8d2bb89
Showing
9 changed files
with
73 additions
and
33 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
8d2bb89
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/7963498637
Benchmark Results
RecursiveSNARK-NIVC-2
ref=e1a69d4
ref=8d2bb89
Prove-NumCons-6540
45.31 ms
(✅ 1.00x)45.17 ms
(✅ 1.00x faster)Verify-NumCons-6540
36.01 ms
(✅ 1.00x)35.67 ms
(✅ 1.01x faster)Prove-NumCons-1028888
330.65 ms
(✅ 1.00x)322.86 ms
(✅ 1.02x faster)Verify-NumCons-1028888
253.50 ms
(✅ 1.00x)250.11 ms
(✅ 1.01x faster)CompressedSNARK-NIVC-Commitments-2
ref=e1a69d4
ref=8d2bb89
Prove-NumCons-6540
10.74 s
(✅ 1.00x)10.80 s
(✅ 1.01x slower)Verify-NumCons-6540
49.10 ms
(✅ 1.00x)52.83 ms
(✅ 1.08x slower)Prove-NumCons-1028888
54.09 s
(✅ 1.00x)53.07 s
(✅ 1.02x faster)Verify-NumCons-1028888
48.92 ms
(✅ 1.00x)52.19 ms
(✅ 1.07x slower)Made with criterion-table