-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add a benchmark for += in ArrayAppend #6653
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
Conversation
@swift-ci Please smoke test |
@swift-ci please benchmark |
The benchmark job will fail because the comparison can't handle when benchmarks have been added (unless that's been fixed) but you can see from the log if the benchmark itself runs fine but then the comparison failed. |
oh oops except you also need to wire the benchmark up here: https://github.com/apple/swift/blob/master/benchmark/utils/main.swift#L124 |
b5953d1
to
6cbf5c6
Compare
D'oh, I was expecting some sort of magic to happen. |
Build comment file:Optimized (O) Regression (0)Improvement (1)
No Changes (154)
Regression (0)Improvement (0)No Changes (155)
|
@swift-ci please benchmark |
@swift-ci Please smoke test |
Looks like the smoke test is failing due to an earlier PR unrelated to this one. The benchmark test is running on CI but not getting reported in the list of checks. |
Build comment file:Optimized (O) |
New benchmark ran OK so this is OK to merge, but it'll need rebasing after the revert of the bad test. If the goal is to target append of multiple-element collections too, we should add another benchmark for that e.g. of a 5-element collection. |
66b90b2
to
3e718d3
Compare
Squashed and rebased on master. |
@swift-CIA please smoke test and merge |
Gah dyac @swift-ci please smoke test and merge |
@swift-ci please smoke test and merge |
There you go! |
Adds a benchmark for the Array
+=
operator, so we can measure the impact of #6652.