MCPcopy Create free account
hub / github.com/boostorg/compute / main

Function main

perf/perf_stl_sort.cpp:15–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "perf.hpp"
14
15int main(int argc, char *argv[])
16{
17 perf_parse_args(argc, argv);
18
19 std::cout << "size: " << PERF_N << std::endl;
20
21 std::vector<int> v;
22 perf_timer t;
23 for(size_t trial = 0; trial < PERF_TRIALS; trial++){
24 v = generate_random_vector<int>(PERF_N);
25 t.start();
26 std::sort(v.begin(), v.end());
27 t.stop();
28 }
29 std::cout << "time: " << t.min_time() / 1e6 << " ms" << std::endl;
30
31 return 0;
32}

Callers

nothing calls this directly

Calls 7

perf_parse_argsFunction · 0.85
sortFunction · 0.85
startMethod · 0.80
stopMethod · 0.80
min_timeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected