diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2024-02-23 15:40:49 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2024-02-23 15:40:49 -0500 |
| commit | 69f36c9b4f5df19f09156689b333afe29a017eed (patch) | |
| tree | f908ce79c7844696b08cc52c78df3e880fa7c7e7 /benchmarks/include/btree-util.h | |
| parent | 0fcf63e9e47bae61b9f7289c157b28ec294c2e24 (diff) | |
| download | dynamic-extension-69f36c9b4f5df19f09156689b333afe29a017eed.tar.gz | |
Benchmark updates
Diffstat (limited to 'benchmarks/include/btree-util.h')
| -rw-r--r-- | benchmarks/include/btree-util.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/benchmarks/include/btree-util.h b/benchmarks/include/btree-util.h deleted file mode 100644 index 571c073..0000000 --- a/benchmarks/include/btree-util.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once - -#include <cstdlib> -#include "psu-ds/BTree.h" - -struct btree_record { - int64_t key; - int64_t value; - - inline bool operator<(const btree_record& other) const { - return key < other.key || (key == other.key && value < other.value); - } - - inline bool operator==(const btree_record& other) const { - return key == other.key && value == other.value; - } -}; - -struct btree_key_extract { - static const int64_t &get(const btree_record &v) { - return v.key; - } -}; - -typedef psudb::BTree<int64_t, btree_record, btree_key_extract> BenchBTree; - - |