@@ -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)};
@@ -70,6 +70,12 @@ void bloom_filter_add(nvbench::state& state,
7070
7171 filter_type filter{num_sub_filters, {}, {static_cast <uint32_t >(pattern_bits)}};
7272
73+ state.collect_dram_throughput ();
74+ state.collect_l1_hit_rates ();
75+ state.collect_l2_hit_rates ();
76+ state.collect_loads_efficiency ();
77+ state.collect_stores_efficiency ();
78+
7379 add_fpr_summary (state, filter);
7480
7581 state.exec ([&](nvbench::launch& launch) {
@@ -87,8 +93,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
8793 .set_type_axes_names({" Key" , " Hash" , " Word" , " WordsPerBlock" , " Distribution" })
8894 .set_max_noise(defaults::MAX_NOISE)
8995 .add_int64_axis(" NumInputs" , {defaults::BF_N})
90- .add_int64_axis(" FilterSizeMB" , defaults::BF_SIZE_MB_RANGE_CACHE)
91- .add_int64_axis(" PatternBits" , {defaults::BF_PATTERN_BITS});
96+ .add_int64_axis(" FilterSizeMB" , defaults::BF_SIZE_MB_RANGE_CACHE);
9297
9398NVBENCH_BENCH_TYPES (bloom_filter_add,
9499 NVBENCH_TYPE_AXES (nvbench::type_list<defaults::BF_KEY>,
@@ -100,8 +105,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
100105 .set_type_axes_names({" Key" , " Hash" , " Word" , " WordsPerBlock" , " Distribution" })
101106 .set_max_noise(defaults::MAX_NOISE)
102107 .add_int64_axis(" NumInputs" , {defaults::BF_N})
103- .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB})
104- .add_int64_axis(" PatternBits" , {defaults::BF_PATTERN_BITS});
108+ .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB});
105109
106110NVBENCH_BENCH_TYPES (bloom_filter_add,
107111 NVBENCH_TYPE_AXES (nvbench::type_list<defaults::BF_KEY>,
@@ -113,5 +117,4 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
113117 .set_type_axes_names({" Key" , " Hash" , " Word" , " WordsPerBlock" , " Distribution" })
114118 .set_max_noise(defaults::MAX_NOISE)
115119 .add_int64_axis(" NumInputs" , {defaults::BF_N})
116- .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB})
117- .add_int64_axis(" PatternBits" , {defaults::BF_PATTERN_BITS});
120+ .add_int64_axis(" FilterSizeMB" , {defaults::BF_SIZE_MB});
0 commit comments