Skip to content

Commit

Permalink
Adjust benchmark input size
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Aug 28, 2024
1 parent cb7fef6 commit eb9b17a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions benchmarks/bloom_filter/bloom_filter_bench.cu
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ struct BlockWords {
static constexpr auto value = S;
};

static constexpr auto BF_N = defaults::N * 5;

NVBENCH_BENCH_TYPES(bloom_filter_add,
NVBENCH_TYPE_AXES(defaults::KEY_TYPE_RANGE,
nvbench::type_list<cuco::default_hash_function<char>>,
Expand All @@ -153,7 +155,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
.set_name("bloom_filter_add_unique_size")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
.add_int64_axis("NumInputs", {BF_N})
.add_int64_axis("FilterSizeMB", defaults::FILTER_SIZE_MB_RANGE_CACHE)
.add_int64_axis("PatternBits", {defaults::PATTERN_BITS});

Expand All @@ -166,7 +168,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
.set_name("bloom_filter_add_unique_hash")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
.add_int64_axis("NumInputs", {BF_N})
.add_int64_axis("FilterSizeMB", {defaults::FILTER_SIZE_MB})
.add_int64_axis("PatternBits", {defaults::PATTERN_BITS});

Expand All @@ -180,7 +182,7 @@ NVBENCH_BENCH_TYPES(
.set_name("bloom_filter_add_unique_block_dim")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
.add_int64_axis("NumInputs", {BF_N})
.add_int64_axis("FilterSizeMB", {defaults::FILTER_SIZE_MB})
.add_int64_axis("PatternBits", {defaults::PATTERN_BITS});

Expand All @@ -193,7 +195,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_test,
.set_name("bloom_filter_test_unique_size")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
.add_int64_axis("NumInputs", {BF_N})
.add_int64_axis("FilterSizeMB", defaults::FILTER_SIZE_MB_RANGE_CACHE)
.add_int64_axis("PatternBits", {defaults::PATTERN_BITS});

Expand All @@ -206,7 +208,7 @@ NVBENCH_BENCH_TYPES(bloom_filter_test,
.set_name("bloom_filter_test_unique_hash")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
.add_int64_axis("NumInputs", {BF_N})
.add_int64_axis("FilterSizeMB", {defaults::FILTER_SIZE_MB})
.add_int64_axis("PatternBits", {defaults::PATTERN_BITS});

Expand All @@ -220,7 +222,7 @@ NVBENCH_BENCH_TYPES(
.set_name("bloom_filter_test_unique_block_dim")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
.add_int64_axis("NumInputs", {BF_N})
.add_int64_axis("FilterSizeMB", {defaults::FILTER_SIZE_MB})
.add_int64_axis("PatternBits", {defaults::PATTERN_BITS});

Expand All @@ -235,7 +237,7 @@ NVBENCH_BENCH_TYPES(
// .set_name("bloom_filter_add_unique_product")
// .set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
// .set_max_noise(defaults::MAX_NOISE)
// .add_int64_axis("NumInputs", {defaults::N})
// .add_int64_axis("NumInputs", {BF_N})
// .add_int64_axis("FilterSizeMB", defaults::FILTER_SIZE_MB_RANGE_CACHE)
// .add_int64_axis("PatternBits", {1, 2, 4, 6, 8, 10});

Expand All @@ -249,6 +251,6 @@ NVBENCH_BENCH_TYPES(
// .set_name("bloom_filter_test_unique_product")
// .set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
// .set_max_noise(defaults::MAX_NOISE)
// .add_int64_axis("NumInputs", {defaults::N})
// .add_int64_axis("NumInputs", {BF_N})
// .add_int64_axis("FilterSizeMB", defaults::FILTER_SIZE_MB_RANGE_CACHE)
// .add_int64_axis("PatternBits", {1, 2, 4, 6, 8, 10});

0 comments on commit eb9b17a

Please sign in to comment.