-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Nova Public Parameter benchmark for SDK
Summary: Test Plan:
- Loading branch information
duc-nx
committed
Aug 13, 2024
1 parent
6c88c1c
commit de9d945
Showing
3 changed files
with
39 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use iai_callgrind::{library_benchmark, library_benchmark_group, main}; | ||
use nexus_sdk::nova; | ||
use nexus_sdk::Parameters; | ||
|
||
fn nova_public_parameter_generation() { | ||
nova::seq::PP::generate_for_testing().expect("Failed to generate Nova public parameters"); | ||
} | ||
|
||
#[library_benchmark] | ||
fn bench_nova_public_parameter() -> () { | ||
nova_public_parameter_generation() | ||
} | ||
|
||
library_benchmark_group!( | ||
name = nova_public_parameter; | ||
benchmarks = bench_nova_public_parameter | ||
); | ||
|
||
main!(library_benchmark_groups = nova_public_parameter); |