diff --git a/test/TestAsyncOperations.cpp b/test/TestAsyncOperations.cpp index 6c7de15e8..45027942f 100755 --- a/test/TestAsyncOperations.cpp +++ b/test/TestAsyncOperations.cpp @@ -109,8 +109,6 @@ TEST(TestAsyncOperations, TestManagerAsync) std::vector(shader.begin(), shader.end())); } - // TODO: Add function to print device details (or link) - // TODO: Seems to fail if await called twice for (uint32_t i = 0; i < numParallel; i++) { mgrAsync.evalOpAwait("async" + std::to_string(i)); } @@ -124,6 +122,9 @@ TEST(TestAsyncOperations, TestManagerAsync) EXPECT_EQ(inputsAsyncB[i]->data(), resultAsync); } + SPDLOG_ERROR("sync {}", durationSync); + SPDLOG_ERROR("async {}", durationAsync); + // The speedup should be at least 40% EXPECT_LT(durationAsync, durationSync * 0.6); }