mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 09:08:11 +00:00
audio-dsp test: DIAG for the slow effects of the extreme-settings tail
This commit is contained in:
@@ -291,6 +291,7 @@ mod tests {
|
||||
std::thread::scope(|scope| {
|
||||
for e in crate::testutil::sampled_effects() {
|
||||
scope.spawn(move || {
|
||||
let started = std::time::Instant::now();
|
||||
for setting in [0.0f32, 1.0] {
|
||||
let mut fx = (e.create)(SR, 2);
|
||||
for p in e.params {
|
||||
@@ -318,6 +319,9 @@ mod tests {
|
||||
);
|
||||
}
|
||||
}
|
||||
if started.elapsed() > std::time::Duration::from_secs(1) {
|
||||
eprintln!("DIAG extreme settings: {} took {:?}", e.id, started.elapsed());
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user