From 659883a7657daac0a596a55be9e03fbd253719bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Sun, 26 Nov 2023 18:50:33 +0100 Subject: [PATCH] check the status of the batch operation too - forgot this --- benchmarks/benchmark.hpp | 3 +++ 1 file changed, 3 insertions(+) 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());