-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add benchmark for UTF-8 decoding #1493
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
I'd recommend adding multiple long runs of 2-byte and 3-byte characters into the test string. That's the typical case, whereas mixed-language case is not. |
What do you mean by 'pre-multiply'? |
The other benchmark do |
@gottesmm What's your recommendation? |
We only pre-multiply if a single iteration (N=1) doesn't provide a stable duration to multiply off of to reach a one second sample. If you're seeing a one second sample time, don't pre-multiply. |
@swift-ci Please test |
Ok this test case probably needs a pre-applied multiplier because the setup code otherwise would skew the results, will add one. |
Add benchmark for UTF-8 decoding
What's in this pull request?
Adds a performance test for UTF-8 decoding.
I didn't pre-multiply N, since the README suggest that, but the other benchmarks all seem to be premultiplying it. What's the preferred approach here?
Before merging this pull request to apple/swift repository:
Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
Validation Testing
Note: Only members of the Apple organization can trigger swift-ci.