Skip to content

Commit

Permalink
Change A=150 to A=144
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPeaboss committed Oct 15, 2024
1 parent 790699a commit a373370
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions benches/bench1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,23 @@ fn proc_a120_10ms(bencher: divan::Bencher, conv: &Conv) {
}

#[divan::bench(args=[Conv::C44k48k, Conv::C44k96k, Conv::C48k44k, Conv::C48k96k, Conv::C96k44k, Conv::C96k48k])]
fn init_a150(conv: &Conv) -> Manager {
fn init_a144(conv: &Conv) -> Manager {
match conv {
Conv::C44k48k => Manager::new(R44K48K, 150.0, 2048, TRANS44K),
Conv::C44k96k => Manager::new(R44K96K, 150.0, 2048, TRANS44K),
Conv::C48k44k => Manager::new(R48K44K, 150.0, 2048, TRANS44K),
Conv::C48k96k => Manager::new(R48K96K, 150.0, 2048, TRANS48K),
Conv::C96k44k => Manager::new(R96K44K, 150.0, 2048, TRANS44K),
Conv::C96k48k => Manager::new(R96K48K, 150.0, 2048, TRANS48K),
Conv::C44k48k => Manager::new(R44K48K, 144.0, 2048, TRANS44K),
Conv::C44k96k => Manager::new(R44K96K, 144.0, 2048, TRANS44K),
Conv::C48k44k => Manager::new(R48K44K, 144.0, 2048, TRANS44K),
Conv::C48k96k => Manager::new(R48K96K, 144.0, 2048, TRANS48K),
Conv::C96k44k => Manager::new(R96K44K, 144.0, 2048, TRANS44K),
Conv::C96k48k => Manager::new(R96K48K, 144.0, 2048, TRANS48K),
}
}

#[divan::bench(
args=[Conv::C44k48k, Conv::C44k96k, Conv::C48k44k, Conv::C48k96k, Conv::C96k44k, Conv::C96k48k],
sample_count=1000,
)]
fn proc_a150_10ms(bencher: divan::Bencher, conv: &Conv) {
let manager = init_a150(conv);
fn proc_a144_10ms(bencher: divan::Bencher, conv: &Conv) {
let manager = init_a144(conv);
let sample_num = conv.sample_num_10ms();
bencher.bench_local(move || {
let iter = (0..).map(|x| x as f64).into_iter();
Expand Down

0 comments on commit a373370

Please sign in to comment.