Skip to content

Conversation

@rhkarls
Copy link
Owner

@rhkarls rhkarls commented Jan 8, 2025

This PR adds a @basicbenchmark decorator to print timing results when calling decorated functions.

As a part of this functionality the PR also adds the return value of the timed function to the dictionary returned by benchmark_stats function.

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@rhkarls rhkarls changed the title feat!: add decorator function for the _stats variant feat!: add decorator for timing function calls Jan 9, 2025
…ary to avoid breaking change.

Dictionary now also contain the return value.
@rhkarls rhkarls changed the title feat!: add decorator for timing function calls feat: add decorator for timing function calls Jan 9, 2025
@rhkarls rhkarls merged commit 2aa373e into main Jan 9, 2025
9 of 10 checks passed
@rhkarls rhkarls deleted the decorator branch March 12, 2025 08:08
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.

3 participants