Skip to content

Commit

Permalink
Adapt benchmark of parallel::unique to STEllAR-GROUP#2882.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeguk committed Sep 24, 2017
1 parent ab0c795 commit a1f7fe4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/performance/parallel_algorithms/local/benchmark_unique.cpp
Expand Up @@ -10,10 +10,10 @@
#include <hpx/include/parallel_copy.hpp>
#include <hpx/include/parallel_generate.hpp>
#include <hpx/include/parallel_unique.hpp>
#include <hpx/util/format.hpp>
#include <hpx/util/high_resolution_clock.hpp>
#include <hpx/util/lightweight_test.hpp>

#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <boost/random.hpp>

Expand Down Expand Up @@ -179,10 +179,10 @@ void run_benchmark(std::size_t vector_size, int test_count,

std::cout << "\n-------------- Benchmark Result --------------" << std::endl;
auto fmt = "unique (%1%) : %2%(sec)";
std::cout << (boost::format(fmt) % "std" % time_std) << std::endl;
std::cout << (boost::format(fmt) % "seq" % time_seq) << std::endl;
std::cout << (boost::format(fmt) % "par" % time_par) << std::endl;
std::cout << (boost::format(fmt) % "par_unseq" % time_par_unseq) << std::endl;
hpx::util::format_to(std::cout, fmt, "std", time_std) << std::endl;
hpx::util::format_to(std::cout, fmt, "seq", time_seq) << std::endl;
hpx::util::format_to(std::cout, fmt, "par", time_par) << std::endl;
hpx::util::format_to(std::cout, fmt, "par_unseq", time_par_unseq) << std::endl;
std::cout << "----------------------------------------------" << std::endl;
}

Expand Down

0 comments on commit a1f7fe4

Please sign in to comment.