From 23c9ae2026de3289fefae830cc95b8062e9d2ef9 Mon Sep 17 00:00:00 2001 From: Kruno Tomola Fabro Date: Thu, 25 Aug 2016 11:39:25 +0100 Subject: [PATCH] Fixed benchmark bug in profile. --- CMakeLists.txt | 2 +- poc/profile.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40dc465c8..5ccf8a726 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -305,7 +305,7 @@ endif() # release flags set(CMAKE_CXX_FLAGS_RELEASE - "${CMAKE_CXX_FLAGS_RELEASE} -march=native -Wall") + "${CMAKE_CXX_FLAGS_RELEASE} -Wall") # -- configure defines -- default is ON | true | enabled ---------------------- # -- logging ------------------------------------------------------------------ diff --git a/poc/profile.cpp b/poc/profile.cpp index 616db34f2..4f8342a55 100644 --- a/poc/profile.cpp +++ b/poc/profile.cpp @@ -370,9 +370,9 @@ int main(int argc, char **argv) iter::for_all_fill( t.label_find_or_create("Company").index->for_range_exact(t), [&](auto v) { - if (i < n) { - coll.push_back(make_pair(v, query(t, v.id()))); - } + // if (i < n) { + coll.push_back(make_pair(v, query(t, v.id()))); + // } i++; }); n = i;