-
Notifications
You must be signed in to change notification settings - Fork 10.5k
add benchmark of set isStrictSubset #23690
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 of set isStrictSubset #23690
Conversation
@swift-ci benchmark |
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.
Thanks, these will be handy. The changes look good, but please add the boxed variants, too!
This comment has been minimized.
This comment has been minimized.
@swift-ci benchmark |
Build failed before running benchmark. |
@swift-ci benchmark |
1 similar comment
@swift-ci benchmark |
@Gumichocopengin8 swift-ci only listens to people with commit access -- but we're happy to trigger tests as needed! |
@swift-ci please smoke test |
Looks good! The bot will analyze benchmarks and it will complain if some tests take too long; if that's the case, those need to be fixed before we merge this. |
@lorentey |
@swift-ci benchmark |
Do I still need to fix something to run benchmark without error? |
Hm; it looks like it failed while running the original benchmarks. Let's try again! @swift-ci please benchmark |
I don't know why it failed. |
It may have something to do with the new benchmarks -- benchmarking does not fail for other PRs. I'll take a look in a local build. |
Thank you. |
There is indeed an issue with
@Gumichocopengin8, could you please fix the expected value and double check there aren't any other issues by running the benchmarks on your system? |
OK! |
I fixed the error and triple checked. |
@swift-ci benchmark |
@swift-ci smoke test |
Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -Onone
How to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
As Benchmark Check Report mentions, benchmark names should follow the convention. |
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.
We shouldn't rename the existing benchmarks.
@@ -68,32 +68,32 @@ public let SetTests = [ | |||
tags: [.validation, .api, .Set], | |||
setUpFunction: { blackHole([setAB, setE]) }), | |||
BenchmarkInfo( | |||
name: "SetIsSubsetInt0", |
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.
Unfortunately we shouldn't change the names of existing benchmarks here -- we're using these to track performance across compiler releases.
It is a good idea to proper names for the new benchmarks, though.
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.
Thank you for your advice.
I fixed it.
Looks good, thanks @Gumichocopengin8! |
@swift-ci benchmark |
@swift-ci smoke test |
Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -Onone
How to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
Need to run test again?? |
Apparently so... @swift-ci please smoke test macOS platform |
Add isStrictSubset benchmark of Set because benchmark of isStrictSubset is not written yet.
SetIsStrictSubsetBox25
andSetIsStrictSubsetBox25
could not compile it, so I commented them out.