From 0a9e79416df03a9e0a3d2cf171cf90028a644d6d Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Mon, 15 Jan 2024 17:21:11 -0500 Subject: Benchmarking programs --- benchmarks/insertion_tput.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'benchmarks/insertion_tput.cpp') diff --git a/benchmarks/insertion_tput.cpp b/benchmarks/insertion_tput.cpp index 5959173..5498f93 100644 --- a/benchmarks/insertion_tput.cpp +++ b/benchmarks/insertion_tput.cpp @@ -21,7 +21,7 @@ typedef de::DynamicExtension Ext; int main(int argc, char **argv) { - auto extension = new Ext(10000, 2, 1); + auto extension = new Ext(1000, 10000, 2); size_t n = 1000000000; size_t per_trial = 1000; @@ -31,7 +31,9 @@ int main(int argc, char **argv) { TIMER_START(); for (int64_t j=0; jinsert(r); + while (!extension->insert(r)) { + _mm_pause(); + } } TIMER_STOP(); auto insert_lat = TIMER_RESULT(); -- cgit v1.2.3