From 1e98754e4e09c92597104bd9eb95f8c8b0aeca32 Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Wed, 10 May 2023 20:40:57 +0200 Subject: [PATCH] #2036: Tests: Reuse the perfMakeRunnable function for collection_local_send perf test --- tests/perf/collection_local_send.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/perf/collection_local_send.cc b/tests/perf/collection_local_send.cc index 50f1fd042a..a300485d8e 100644 --- a/tests/perf/collection_local_send.cc +++ b/tests/perf/collection_local_send.cc @@ -87,13 +87,7 @@ struct NodeObj { msgs.emplace_back(makeMessage()); } - theTerm()->disableTD(); - - test_obj_->StartTimer(fmt::format("colSend {}", num_iters)); - perfRunBenchmark(); - test_obj_->StopTimer(fmt::format("colSend {}", num_iters)); - - theTerm()->enableTD(); + perfMakeRunnable(in_msg); } void perfMakeRunnable(MyMsg* in_msg) {