Skip to content
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

syntax: add benchmarks for scanning and parsing #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alandonovan
Copy link
Contributor

No description provided.

Change-Id: Ie1269b8899c4454dc955c7453ed9e9266aceaaa3
@alandonovan alandonovan requested a review from jayconrod August 21, 2019 19:24
@@ -47,6 +47,23 @@ func Parse(filename string, src interface{}, mode Mode) (f *File, err error) {
return f, nil
}

// ScanAndDiscard tokenizes the input data and discards the tokens.
// Parameters are as for Parse.
// It exists only for internal benchmarking purposes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unfortunate this needs to be part of the external API for benchmarking. Could the "scan" benchmark be moved to the syntax package instead?

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.

4 participants