GitHub Viewer
// Copyright Sebastian Jeckel 2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include
#include
#include
#include
#include
#include
#include
#include "react/common/Util.h"
///////////////////////////////////////////////////////////////////////////////////////////////////
// Get unique random numbers from range.
///////////////////////////////////////////////////////////////////////////////////////////////////
template
const std::vector GetUniqueRandomNumbers(TGen gen, T from, T to, int count)
{
std::vector data(1 + to - from);
int c = from;
for (auto& p : data)
p = c++;
for (int i=0; i
void RunBenchmark(std::ostream& logfile, TBenchmark b, const TParams& params)
{
std::cout