Skip to content

Added microbenchmark#726

Open
crimson11 wants to merge 1 commit into
mainfrom
mf_benchmark_allocate_send
Open

Added microbenchmark#726
crimson11 wants to merge 1 commit into
mainfrom
mf_benchmark_allocate_send

Conversation

@crimson11

Copy link
Copy Markdown
Contributor

New benchmark for SkeletonEvent::Allocate
and SkeletonEvent::Send added.

New benchmark for SkeletonEvent::Allocate
and SkeletonEvent::Send added.

for (auto ignore : state)
{
static_cast<void>(ignore);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better use std::ignore =

if (!fixture_initialized_)
{
// clang-format off
auto config_path = runtime::RuntimeConfiguration(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this not be const?

return;
}
auto sample = std::move(sample_alloc_result).value();
auto send_result = skeleton.test_event.Send(std::move(sample));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be const

skeleton_ = std::move(skeleton_result_.value());

// Offer the service
auto offer_result = skeleton_->OfferService();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const?

auto skeleton_result_ =
TestDataSkeleton::Create(InstanceSpecifier::Create(std::string{kBenchmarkInstanceSpecifier}).value());
SCORE_LANGUAGE_FUTURECPP_ASSERT_PRD(skeleton_result_.has_value());
skeleton_ = std::move(skeleton_result_.value());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::move(skeleton_result_).value()?

And it should not be named skeleton_result_, rather skeleton_result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants