Skip to content

Enhance benchmark run methods with setup and teardown#135

Closed
urcheon wants to merge 1 commit intomartinus:masterfrom
urcheon:master
Closed

Enhance benchmark run methods with setup and teardown#135
urcheon wants to merge 1 commit intomartinus:masterfrom
urcheon:master

Conversation

@urcheon
Copy link
Copy Markdown

@urcheon urcheon commented Dec 18, 2025

Refactor benchmark run methods to include setup and teardown operations.

Refactor benchmark run methods to include setup and teardown operations.
beginMeasure();
op();
endMeasure();
teardown();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can you please add a test which makes sure the setup and teardown costs aren't included in the measurements?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Added it myself in #136 with a different implementation

@urcheon
Copy link
Copy Markdown
Author

urcheon commented Jan 7, 2026

Better implementation by l0rinc

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants