@@ -49,7 +49,7 @@ void bloom_filter_add(nvbench::state& state,
4949
5050 auto const num_keys = state.get_int64 (" NumInputs" );
5151 auto const filter_size_mb = state.get_int64 (" FilterSizeMB" );
52- auto const pattern_bits = state.get_int64 (" PatternBits" );
52+ auto const pattern_bits = state.get_int64_or_default (" PatternBits" , WordsPerBlock );
5353
5454 try {
5555 auto const policy = policy_type{static_cast <uint32_t >(pattern_bits)};
@@ -93,8 +93,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
9393 .set_type_axes_names({" Key" , " Hash" , " Word" , " WordsPerBlock" , " Distribution" })
9494 .set_max_noise(defaults::MAX_NOISE)
9595 .add_int64_axis(" NumInputs" , {defaults::BF_N})
96- .add_int64_axis(" FilterSizeMB" , defaults::BF_SIZE_MB_RANGE_CACHE)
97- .add_int64_axis(" PatternBits" , {defaults::BF_PATTERN_BITS});
96+ .add_int64_axis(" FilterSizeMB" , defaults::BF_SIZE_MB_RANGE_CACHE);
9897
9998NVBENCH_BENCH_TYPES (bloom_filter_add,
10099 NVBENCH_TYPE_AXES (nvbench::type_list<defaults::BF_KEY>,
@@ -106,8 +105,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
106105 .set_type_axes_names({" Key" , " Hash" , " Word" , " WordsPerBlock" , " Distribution" })
107106 .set_max_noise(defaults::MAX_NOISE)
108107 .add_int64_axis(" NumInputs" , {defaults::BF_N})
109- .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB})
110- .add_int64_axis(" PatternBits" , {defaults::BF_PATTERN_BITS});
108+ .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB});
111109
112110NVBENCH_BENCH_TYPES (bloom_filter_add,
113111 NVBENCH_TYPE_AXES (nvbench::type_list<defaults::BF_KEY>,
@@ -119,5 +117,4 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
119117 .set_type_axes_names({" Key" , " Hash" , " Word" , " WordsPerBlock" , " Distribution" })
120118 .set_max_noise(defaults::MAX_NOISE)
121119 .add_int64_axis(" NumInputs" , {defaults::BF_N})
122- .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB})
123- .add_int64_axis(" PatternBits" , {defaults::BF_PATTERN_BITS});
120+ .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB});
0 commit comments