-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add benchmarks for Substring.dropFirst(_:) and dropLast(_:) #32473
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 Substring.dropFirst(_:) and dropLast(_:) #32473
Conversation
These are self-slicing operations, so they should be fast even for this non-random-access collection.
@swift-ci Please benchmark |
Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -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 smoke test and merge |
@inline(never) | ||
public func run_SubstringDropFirst1(_ N: Int) { | ||
let s = quiteLong[...] | ||
for _ in 1...N*500 { |
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.
Maybe 5000 to get a more reliable benchmark?
@swift-ci Please smoke benchmark |
@swift-ci Please smoke test |
Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -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
|
c2144ae
to
3aeead4
Compare
@swift-ci Please smoke benchmark |
1 similar comment
@swift-ci Please smoke benchmark |
Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -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 smoke test |
These are self-slicing operations, so they should be fast even for this non-random-access collection.
Hoping to see a difference in this new benchmark from the change in #32451.