]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/benchmark/transform/execute.std.vector.erb.cpp
1 // Copyright Louis Dionne 2013-2017
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)
12 boost::hana::benchmark::measure([] {
14 for (int iteration
= 0; iteration
< 1 << 10; ++iteration
) {
15 std::vector
<int> values
= {
16 <%= input_size
.times
.map
{ 'std::rand()' }.join(', ') %>
19 std::vector
<long long> results
;
20 results
.reserve(<%= input_size
%>);
22 std::transform(values
.begin(), values
.end(), results
.begin(), [&](auto t
) {