-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,47 @@ | ||
use std::time::Duration; | ||
|
||
#[macro_use] | ||
extern crate criterion; | ||
|
||
mod clusterizer_bench; | ||
mod multiscaler_bench; | ||
mod perturbator_bench; | ||
mod detector_bench; | ||
mod localizer_bench; | ||
mod shaper_bench; | ||
use criterion::Criterion; | ||
|
||
mod clusterizer; | ||
mod detector; | ||
mod localizer; | ||
mod multiscaler; | ||
mod perturbator; | ||
mod shaper; | ||
|
||
criterion_group!( | ||
name = loading; | ||
config = Criterion::default() | ||
.warm_up_time(Duration::from_secs(15)) | ||
.sample_size(25) | ||
.noise_threshold(0.05) | ||
.measurement_time(Duration::from_secs(10)); | ||
targets = | ||
detector::bench_load, | ||
localizer::bench_load, | ||
shaper::bench_load, | ||
); | ||
|
||
criterion_group!( | ||
name = detection; | ||
config = Criterion::default() | ||
.warm_up_time(Duration::from_secs(5)) | ||
.sample_size(100) | ||
.measurement_time(Duration::from_secs(20)); | ||
targets = | ||
detector::bench_inference, | ||
localizer::bench_inference, | ||
shaper::bench_inference, | ||
); | ||
|
||
criterion_group!( | ||
utils, | ||
clusterizer::bench_clusterize, | ||
multiscaler::bench_run, | ||
perturbator::bench_run | ||
); | ||
|
||
criterion_main!( | ||
clusterizer_bench::benches, | ||
multiscaler_bench::benches, | ||
perturbator_bench::benches, | ||
detector_bench::benches, | ||
localizer_bench::benches, | ||
shaper_bench::benches, | ||
); | ||
criterion_main!(loading, detection, utils); |
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