From d1f3535404ec2c200dcf2628b8c5c1f92b39e797 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Thu, 16 Nov 2023 11:59:52 -0500 Subject: insert_tput: minor adjustments --- benchmarks/insertion_tput.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'benchmarks/insertion_tput.cpp') diff --git a/benchmarks/insertion_tput.cpp b/benchmarks/insertion_tput.cpp index ad53443..5959173 100644 --- a/benchmarks/insertion_tput.cpp +++ b/benchmarks/insertion_tput.cpp @@ -21,29 +21,24 @@ typedef de::DynamicExtension Ext; int main(int argc, char **argv) { - auto extension = Ext(1000, 2, 1); + auto extension = new Ext(10000, 2, 1); - size_t n = 1000000; - size_t per_trial = 100; - - std::vector latencies; + size_t n = 1000000000; + size_t per_trial = 1000; TIMER_INIT(); for (int64_t i=0; iinsert(r); } TIMER_STOP(); + auto insert_lat = TIMER_RESULT(); - auto res = TIMER_RESULT(); - - latencies.push_back(TIMER_RESULT()); + fprintf(stdout, "%ld\t%ld\t%ld\n", extension->get_record_count(), insert_lat, per_trial); } - for (size_t i=0; i