]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/benchmark/fold_left/execute.std.vector.erb.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / benchmark / fold_left / execute.std.vector.erb.cpp
CommitLineData
b32b8144 1// Copyright Louis Dionne 2013-2017
7c673cae
FG
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
4
5#include "measure.hpp"
6#include <cstdlib>
7#include <numeric>
8#include <vector>
9
10
11int main () {
12 boost::hana::benchmark::measure([] {
13 long long result = 0;
14 for (int iteration = 0; iteration < 1 << 10; ++iteration) {
15 std::vector<int> values = {
16 <%= input_size.times.map { 'std::rand()' }.join(', ') %>
17 };
18
19 result += std::accumulate(values.begin(), values.end(), 0);
20 }
21 });
22}