For comparison: pure copy without any changes
| 53 | |
| 54 | // For comparison: pure copy without any changes |
| 55 | void std_copy(benchmark::State& state) { |
| 56 | auto source = generate_junk(kSize); |
| 57 | std::vector<int> target(kSize); |
| 58 | |
| 59 | for (auto _ : state) { |
| 60 | std::copy(source.begin(), source.end(), target.begin()); |
| 61 | } |
| 62 | state.SetItemsProcessed(state.iterations() * kSize); |
| 63 | } |
| 64 | |
| 65 | BENCHMARK(std_copy); |
| 66 |
nothing calls this directly
no test coverage detected