-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update polynomial_arithmetic.rs Added more documentation for cargo docs. * docs/PhantomData in `polynomials.rs` Added documentation and removed the use of `PhatomData` here as it seemed unnecessary. * Update evaluation_domain.rs * addressed some verifier test errors fixed most borrow checker errors lifetime annotations, verifier test compiles cleaned up commented code update unimplemented message making it work on composer, assuming you squash this * saying polynomial in funny voice in my head rn * cargo fix n format --------- Co-authored-by: Colin Roberts <[email protected]> Co-authored-by: Claudia Richoux <[email protected]>
- Loading branch information
1 parent
050cbc2
commit 201dbc5
Showing
13 changed files
with
696 additions
and
226 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
use criterion::{criterion_group, criterion_main, Criterion}; | ||
|
||
pub fn add_benchmark(c: &mut Criterion) { | ||
let mut rvg = barustenberg::test_utils::Rvg::deterministic(); | ||
let int_val_1 = rvg.sample(&(0..100i32)); | ||
let int_val_2 = rvg.sample(&(0..100i32)); | ||
// let mut rvg = barustenberg::test_utils::Rvg::deterministic(); | ||
// let int_val_1 = rvg.sample(&(0..100i32)); | ||
// let int_val_2 = rvg.sample(&(0..100i32)); | ||
|
||
c.bench_function("add", |b| { | ||
b.iter(|| { | ||
barustenberg::add(int_val_1, int_val_2); | ||
}) | ||
}); | ||
// c.bench_function("add", |b| { | ||
// b.iter(|| { | ||
// barustenberg::add(int_val_1, int_val_2); | ||
// }) | ||
// }); | ||
} | ||
criterion_group!(benches, add_benchmark); | ||
criterion_main!(benches); |
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.