diff options
Diffstat (limited to 'benches/wgpu.rs')
-rw-r--r-- | benches/wgpu.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/benches/wgpu.rs b/benches/wgpu.rs index 617be16d..2c117858 100644 --- a/benches/wgpu.rs +++ b/benches/wgpu.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use criterion::{criterion_group, criterion_main, Bencher, Criterion}; use iced::alignment; @@ -12,8 +13,12 @@ criterion_main!(benches); criterion_group!(benches, wgpu_benchmark); pub fn wgpu_benchmark(c: &mut Criterion) { - c.bench_function("wgpu — canvas (light)", |b| benchmark(b, scene(10))); - c.bench_function("wgpu — canvas (heavy)", |b| benchmark(b, scene(1_000))); + let _ = c + .bench_function("wgpu — canvas (light)", |b| benchmark(b, scene(10))); + + let _ = c.bench_function("wgpu — canvas (heavy)", |b| { + benchmark(b, scene(1_000)) + }); } fn benchmark<'a>( @@ -98,7 +103,7 @@ fn benchmark<'a>( ); bencher.iter(|| { - user_interface.draw( + let _ = user_interface.draw( &mut renderer, &Theme::Dark, &core::renderer::Style { |