diff --git a/test/perf/perf_collection.cc b/test/perf/perf_collection.cc index f30758f756..42446a4d3c 100644 --- a/test/perf/perf_collection.cc +++ b/test/perf/perf_collection.cc @@ -31,6 +31,9 @@ using per_key_t = int64_t; struct key_compare { bool operator()(const per_key_t& a, const per_key_t& b) const noexcept { return a < b; } + int64_t simplify_key(per_key_t k) noexcept { + return k; + } }; struct key_tri_compare { @@ -46,6 +49,8 @@ using namespace seastar; /* On node size 32 and less linear search works better */ using test_bplus_tree = bplus::tree; +static_assert(bplus::SimpleLessCompare); + #include "utils/intrusive_btree.hh" class perf_intrusive_key {