Skip to content

Commit

Permalink
update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Jan 16, 2024
1 parent b32d55a commit 1de56aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bem/benches/assembly_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ use bempp_bem::function_space::SerialFunctionSpace;
use bempp_element::element::create_element;
use bempp_grid::shapes::regular_sphere;
use bempp_kernel::laplace_3d;
use bempp_tools::arrays::zero_matrix;
use bempp_traits::bem::DofMap;
use bempp_traits::bem::FunctionSpace;
use bempp_traits::cell::ReferenceCellType;
use bempp_traits::element::{Continuity, ElementFamily};
use criterion::{criterion_group, criterion_main, Criterion};
use rlst_dense::rlst_dynamic_array2;

pub fn full_assembly_benchmark(c: &mut Criterion) {
let mut group = c.benchmark_group("assembly");
Expand All @@ -24,7 +24,7 @@ pub fn full_assembly_benchmark(c: &mut Criterion) {
);

Check warning on line 24 in bem/benches/assembly_benchmark.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

Diff in /home/runner/work/bempp-rs/bempp-rs/bem/benches/assembly_benchmark.rs

Check warning on line 24 in bem/benches/assembly_benchmark.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

Diff in /home/runner/work/bempp-rs/bempp-rs/bem/benches/assembly_benchmark.rs

let space = SerialFunctionSpace::new(&grid, &element);
let mut matrix = zero_matrix([space.dofmap().global_size(), space.dofmap().global_size()]);
let mut matrix = rlst_dynamic_array2!(f64, [space.dofmap().global_size(), space.dofmap().global_size()]);

group.bench_function(
&format!(
Expand Down Expand Up @@ -62,7 +62,7 @@ pub fn assembly_parts_benchmark(c: &mut Criterion) {
);

Check warning on line 62 in bem/benches/assembly_benchmark.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

Diff in /home/runner/work/bempp-rs/bempp-rs/bem/benches/assembly_benchmark.rs

Check warning on line 62 in bem/benches/assembly_benchmark.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

Diff in /home/runner/work/bempp-rs/bempp-rs/bem/benches/assembly_benchmark.rs

let space = SerialFunctionSpace::new(&grid, &element);
let mut matrix = zero_matrix([space.dofmap().global_size(), space.dofmap().global_size()]);
let mut matrix = rlst_dynamic_array2!(f64, [space.dofmap().global_size(), space.dofmap().global_size()]);

let colouring = space.compute_cell_colouring();

Expand Down

0 comments on commit 1de56aa

Please sign in to comment.