aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp')
-rw-r--r--eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp11
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;
//-----------------------------------------------------------------------------