From 7d3b8b63a1bb3653495b849089a4809a737b7cdf Mon Sep 17 00:00:00 2001 From: Timo Bingmann Date: Mon, 28 Oct 2013 09:32:01 +0100 Subject: [PATCH] Short instructions about how to run the speedtests. --- speedtest/README | 12 ++++++++++++ speedtest/speedtest-tune.cc | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/speedtest/README b/speedtest/README index dee97c8..bd816fd 100644 --- a/speedtest/README +++ b/speedtest/README @@ -8,5 +8,17 @@ Date: 2013-05-05 This directory contains a set of speed tests programs, which can be used to compare the performance of different map containers. +The speedtest is compiled when ./configure is called with --enable-speedtest, +also add --enable-optimize! + +Running the speedtest creates files like speed-set-all.txt and similar. + +For gnuplot processing, the output files have to be transposed using the +transpose.awk: +$ for f in *.txt; do ./transpose.awk < $f > ${f%%.txt}.trt; done + +Then pick out the latest gnuplot script from the results directories and run +it using the new result files. + For more information see the speed test results web site http://panthema.net/2007/stx-btree/speedtest/ diff --git a/speedtest/speedtest-tune.cc b/speedtest/speedtest-tune.cc index c0711f8..8f2eba0 100644 --- a/speedtest/speedtest-tune.cc +++ b/speedtest/speedtest-tune.cc @@ -51,7 +51,7 @@ inline double timestamp() template struct btree_traits_speed : public stx::btree_default_set_traits { - static const int binsearch_threshold = _bs_slots; + static const size_t binsearch_threshold = _bs_slots; }; /// Test the B+ tree with a specific leaf/inner slots (only insert)