diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-02-26 21:13:29 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-02-26 21:13:58 +0100 |
commit | f8b2ef0264d3514baf91f0059545b41bf08ccac0 (patch) | |
tree | 035707e0fd51978083781db988a47d7347ceca44 /eval/src/tests/tensor | |
parent | 1db3988726885400d330cc3b868b145df632c1f4 (diff) |
Remove inlining warnings (eval).
Diffstat (limited to 'eval/src/tests/tensor')
-rw-r--r-- | eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp b/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp index 786301a252f..065c9426452 100644 --- a/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp +++ b/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp @@ -270,7 +270,11 @@ struct BenchmarkResult { double star_rating; BenchmarkResult(const vespalib::string &desc_in, size_t num_values) : desc(desc_in), ref_time(std::nullopt), relative_perf(num_values, 0.0) {} + BenchmarkResult(const BenchmarkResult&); + BenchmarkResult(BenchmarkResult&&) noexcept = default; ~BenchmarkResult(); + BenchmarkResult& operator=(const BenchmarkResult&); + BenchmarkResult& operator=(BenchmarkResult&&) noexcept; void sample(size_t order, double time) { relative_perf[order] = time; if (order == 0) { @@ -305,8 +309,15 @@ struct BenchmarkResult { fprintf(stderr, "| %s\n", desc.c_str()); } }; + +BenchmarkResult::BenchmarkResult(const BenchmarkResult&) = default; + BenchmarkResult::~BenchmarkResult() = default; +BenchmarkResult& BenchmarkResult::operator=(const BenchmarkResult&) = default; + +BenchmarkResult& BenchmarkResult::operator=(BenchmarkResult&&) noexcept = default; + std::vector<BenchmarkResult> benchmark_results; //----------------------------------------------------------------------------- |