-
Notifications
You must be signed in to change notification settings - Fork 231
Add benchmark for AnnulusBounds #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add benchmark for AnnulusBounds #334
Conversation
|
Ok, I think this time I didn't mess it up. |
|
I like this initiative! |
Codecov Report
@@ Coverage Diff @@
## master #334 +/- ##
=======================================
Coverage 48.67% 48.67%
=======================================
Files 325 325
Lines 16397 16397
Branches 7599 7599
=======================================
Hits 7981 7981
Misses 3104 3104
Partials 5312 5312
Continue to review full report at Codecov.
|
|
Why is this labeled as bug? |
Because after having opened this PR wrongly two times before this one, I labelled it incorrectly. 😅 |
asalzburger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conditionally approved, if you don't need the other code block, just remove it.
I added a benchmark for the various bounds checks in
AnnulusBounds. I'm following @HadrienG2's example inBoundaryCheckBenchmark.cpp, and pick out a few special points to test best-case and worst-case performance. Also included are random test points.This indicates the covariance check is about 10x slower than the tolerance and absolute checks. (Which is not really unexpected, I just wanted to quantify)