Skip to content

Add performance tests for SyntaxVisitor to the test suite #175

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

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 8, 2019

This PR adds three XCTest performance tests that test performance of the SyntaxRewriter, SyntaxVisitor and SyntaxAnyVisitor.

Since the tests are run using XCTest, I found that they are sometimes fairly unstable. However, they should serve as a good common ground to check if a change has major performance impacts.

For more accurate performance measurement, I would still recommend writing a standalone command line utility that links against SwiftSyntax and does its own measurements.

@ahoppen ahoppen requested a review from akyrtzi November 8, 2019 02:13
@ahoppen
Copy link
Member Author

ahoppen commented Nov 8, 2019

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Nov 8, 2019

Build failed
Swift Test OS X Platform
Git Sha - 09e7578

@ahoppen
Copy link
Member Author

ahoppen commented Nov 8, 2019

@swift-ci Please test

@ahoppen ahoppen merged commit d94ab65 into swiftlang:master Nov 8, 2019
@ahoppen ahoppen deleted the performance-tests branch January 14, 2023 08:21
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
Add spaces after labels for overlooked stmt types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants