Browse Source

check the status of the batch operation too - forgot this

master
Constantin Fürst 1 year ago
parent
commit
659883a765
  1. 3
      benchmarks/benchmark.hpp

3
benchmarks/benchmark.hpp

@ -87,6 +87,9 @@ void* thread_function(void* argp) {
const auto et = std::chrono::high_resolution_clock::now(); 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<std::chrono::microseconds>(se - st).count()); submission_durations.emplace_back(std::chrono::duration_cast<std::chrono::microseconds>(se - st).count());
completion_durations.emplace_back(std::chrono::duration_cast<std::chrono::microseconds>(et - se).count()); completion_durations.emplace_back(std::chrono::duration_cast<std::chrono::microseconds>(et - se).count());
combined_durations.emplace_back(std::chrono::duration_cast<std::chrono::microseconds>(et - st).count()); combined_durations.emplace_back(std::chrono::duration_cast<std::chrono::microseconds>(et - st).count());

Loading…
Cancel
Save