Skip to content

Commit 87fff07

Browse files
authored
[storage] Fix full_bench gate for cfg_if-gated benches (#1837)
1 parent 73c6205 commit 87fff07

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

storage/src/adb/benches/current_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const MULTI_THREADED: usize = 8;
4242
const CHUNK_SIZE: usize = 32;
4343

4444
cfg_if::cfg_if! {
45-
if #[cfg(test)] {
45+
if #[cfg(not(full_bench))] {
4646
const ELEMENTS: [u64; 1] = [NUM_ELEMENTS];
4747
const OPERATIONS: [u64; 1] = [NUM_OPERATIONS];
4848
} else {

storage/src/adb/benches/fixed_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const PAGE_CACHE_SIZE: usize = 10_000;
3434
const THREADS: usize = 8;
3535

3636
cfg_if::cfg_if! {
37-
if #[cfg(test)] {
37+
if #[cfg(not(full_bench))] {
3838
const ELEMENTS: [u64; 1] = [NUM_ELEMENTS];
3939
const OPERATIONS: [u64; 1] = [NUM_OPERATIONS];
4040
} else {

storage/src/adb/benches/variable_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const PAGE_CACHE_SIZE: NonZeroUsize = NZUsize!(10_000);
3737
const THREADS: usize = 8;
3838

3939
cfg_if::cfg_if! {
40-
if #[cfg(test)] {
40+
if #[cfg(not(full_bench))] {
4141
const ELEMENTS: [u64; 1] = [NUM_ELEMENTS];
4242
const OPERATIONS: [u64; 1] = [NUM_OPERATIONS];
4343
} else {

storage/src/store/benches/restart.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const PAGE_SIZE: NonZeroUsize = NZUsize!(16_384);
3131
const PAGE_CACHE_SIZE: NonZeroUsize = NZUsize!(10_000);
3232

3333
cfg_if::cfg_if! {
34-
if #[cfg(test)] {
34+
if #[cfg(not(full_bench))] {
3535
const ELEMENTS: [u64; 1] = [NUM_ELEMENTS];
3636
const OPERATIONS: [u64; 1] = [NUM_OPERATIONS];
3737
} else {

0 commit comments

Comments
 (0)