diff --git a/benchmarks/benchmark.hpp b/benchmarks/benchmark.hpp index 80d140a..7b736ff 100644 --- a/benchmarks/benchmark.hpp +++ b/benchmarks/benchmark.hpp @@ -87,6 +87,9 @@ void* thread_function(void* argp) { const auto et = std::chrono::high_resolution_clock::now(); + const dml::status_code status = result.status; + CHECK_STATUS(status, "Batch completed with an Error!"); + submission_durations.emplace_back(std::chrono::duration_cast(se - st).count()); completion_durations.emplace_back(std::chrono::duration_cast(et - se).count()); combined_durations.emplace_back(std::chrono::duration_cast(et - st).count());