-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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 benchmarks for UTF16 decoding #34435
Add benchmarks for UTF16 decoding #34435
Conversation
169e18d
to
b5c14fd
Compare
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.
@swift-ci Please benchmark
@swift-ci Please benchmark |
Performance: -O
Code size: -OPerformance: -Osize
Code size: -OsizePerformance: -Onone
Code size: -swiftlibs
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
|
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.
The suggestions on how to modify the benchmarks are pretty helpful.
Suggestions absolutely make sense. But. Benchmarks which were added are copycats of UTF8 benchmarks. They use same names. They use same test strings. I think, it's very interesting to see that What do you think of it, @xwu? Should performance team (@eeckstein) share their opinion on this? |
No, those are legacy names. Benchmarks now have a different naming scheme, and all new benchmarks should adhere to them. The workload and setup warnings should be adhered to as well precisely because it is important to have reliable benchmarks that can be compared over time. |
Is it possible to reduce the number of new benchmarks to a set which contains a representative coverage of the algorithms/code which it should test? If we end up adding benchmarks for all combinations of all language features, the benchmark runtime just gets out of bounds. Note: it's possible to add the ".skip" benchmark tag, which excludes a benchmark from the regular run, but still enables someone to run it locally. |
61c780e
to
816e43d
Compare
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
816e43d
to
71e8288
Compare
done |
ping |
@swift-ci Please benchmark |
It would be good to force initialization of the global variables in the setUpFunction, e.g. add |
done |
@swift-ci benchmark |
@swift-ci smoke test |
@swift-ci smoke test linux |
Should I bother about failed linux test? |
@swift-ci please smoke test Linux |
@valeriyvan The linux failure was unrelated. Thanks for the contribution! |
Adds benchmarks for UTF16 decoding
Partially resolves SR-8905