-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cxx-interop] Add initial benchmark to compare vector<uint32_t> sum i… #61456
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 test |
@swift-ci please benchmark |
@swift-ci please test macOS platform |
Benchmark InfoPerformance (x86_64): -O
Code size: -OPerformance (x86_64): -Osize
Code size: -OsizePerformance (x86_64): -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
|
@swift-ci please benchmark |
@swift-ci please test |
Benchmark info: Performance (x86_64): -O
Code size: -OPerformance (x86_64): -Osize
Code size: -OsizePerformance (x86_64): -Onone
Code size: -swiftlibs
|
…nd take iter into account
… that doesn't use C++ inline helpers
…times for slow runs
…C++, and subscript is fast with swiftlang#61499 fixed
106ea29
to
0e95c75
Compare
@swift-ci please benchmark |
@swift-ci please test |
Benchmark resultsPerformance (x86_64): -O
Code size: -OPerformance (x86_64): -Osize
Code size: -OsizePerformance (x86_64): -Onone
Code size: -swiftlibs
|
@swift-ci please benchmark |
@swift-ci please test |
benchmark info### Performance (x86_64): -O
Code size: -OPerformance (x86_64): -Osize
Code size: -OsizePerformance (x86_64): -Onone
Code size: -swiftlibs
|
@swift-ci please test |
@swift-ci please benchmark |
results:Performance (x86_64): -O
Code size: -OPerformance (x86_64): -Osize
Code size: -OsizePerformance (x86_64): -Onone
Code size: -swiftlibs
|
@swift-ci please test macOS platform |
3 similar comments
@swift-ci please test macOS platform |
@swift-ci please test macOS platform |
@swift-ci please test macOS platform |
…n C++ vs Swift
This benchmark compares the performance of summing up a vector of a million elements between Swift and C++.
Initial numbers on M1 Mac:
We're investigating why the
CxxVectorOfU32SumInSwift
is slower and how to correctly fix it.