summaryrefslogtreecommitdiffstats
path: root/benchmarks/pgm_rq_bench.cpp
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-07-23 14:17:38 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-07-23 14:17:38 -0400
commitfc8b4c14bd2814447b5d3180c4ecf3742196c6bf (patch)
tree0496dfead96639d2813f0a364f92dec0d7871cde /benchmarks/pgm_rq_bench.cpp
parent4c616412f938bc06a12e7526c4e314e4451c083c (diff)
downloaddynamic-extension-fc8b4c14bd2814447b5d3180c4ecf3742196c6bf.tar.gz
Benchmarking updates
Diffstat (limited to 'benchmarks/pgm_rq_bench.cpp')
-rw-r--r--benchmarks/pgm_rq_bench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/pgm_rq_bench.cpp b/benchmarks/pgm_rq_bench.cpp
index aac6e07..3acc34e 100644
--- a/benchmarks/pgm_rq_bench.cpp
+++ b/benchmarks/pgm_rq_bench.cpp
@@ -32,18 +32,18 @@ int main(int argc, char **argv)
auto queries = read_range_queries<de::pgm_range_query_parms<Rec>>(query_file, .0001);
std::fstream datafile;
- datafile.open(filename, std::ios::in);
+ datafile.open(filename, std::ios::in | std::ios::binary);
std::vector<Rec> to_delete;
// warm up the tree with initial_insertions number of initially inserted
// records
size_t warmup_cnt = insert_batch * record_count;
- warmup<ExtendedPGMRQ, Rec>(datafile, de, warmup_cnt, delete_prop, to_delete);
+ warmup<ExtendedPGMRQ, Rec>(datafile, de, warmup_cnt, delete_prop, to_delete, true, true);
size_t insert_cnt = record_count - warmup_cnt;
- insert_tput_bench<ExtendedPGMRQ, Rec>(de, datafile, insert_cnt, delete_prop, to_delete);
+ insert_tput_bench<ExtendedPGMRQ, Rec>(de, datafile, insert_cnt, delete_prop, to_delete, true);
fprintf(stdout, "%ld\t", de.get_memory_usage());
query_latency_bench<ExtendedPGMRQ, Rec, de::pgm_range_query_parms<Rec>>(de, queries, 1);