Skip to content

Commit 9b680e6

Browse files
authored
Undo doing less bench iterations under cfg(test) (#6021)
1 parent 0aca442 commit 9b680e6

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

benches/benches/computepass.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,14 @@ use rayon::iter::{IntoParallelIterator, ParallelIterator};
1010

1111
use crate::DeviceState;
1212

13-
#[cfg(not(test))]
1413
const DISPATCH_COUNT: usize = 10_000;
15-
#[cfg(test)]
16-
const DISPATCH_COUNT: usize = 8; // Running with up to 8 threads.
1714

1815
// Currently bindless is _much_ slower than with regularly resources,
1916
// since wgpu needs to issues barriers for all resources between each dispatch for all read/write textures & buffers.
2017
// This is in fact so slow that it makes the benchmark unusable when we use the same amount of
2118
// resources as the regular benchmark.
2219
// For details see https://github.com/gfx-rs/wgpu/issues/5766
23-
#[cfg(not(test))]
2420
const DISPATCH_COUNT_BINDLESS: usize = 1_000;
25-
#[cfg(test)]
26-
const DISPATCH_COUNT_BINDLESS: usize = 8; // Running with up to 8 threads.
2721

2822
// Must match the number of textures in the computepass.wgsl shader
2923
const TEXTURES_PER_DISPATCH: usize = 2;

benches/benches/renderpass.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ use rayon::iter::{IntoParallelIterator, ParallelIterator};
1010

1111
use crate::DeviceState;
1212

13-
#[cfg(test)]
14-
const DRAW_COUNT: usize = 8; // Running with up to 8 threads.
15-
16-
#[cfg(not(test))]
1713
const DRAW_COUNT: usize = 10_000;
1814

1915
// Must match the number of textures in the renderpass.wgsl shader

0 commit comments

Comments
 (0)