Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

add benchmark for parse file #372

Merged
merged 1 commit into from
Dec 27, 2019
Merged

add benchmark for parse file #372

merged 1 commit into from
Dec 27, 2019

Conversation

cvgw
Copy link
Collaborator

@cvgw cvgw commented Dec 27, 2019

Description

Add a basic benchmark test for mockgen parseFile so we can compare performance changes between versions.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests

Reviewer Notes

  • The code flow looks good.
  • Tests added.

Release Notes

@cvgw cvgw marked this pull request as ready for review December 27, 2019 21:20
@cvgw cvgw requested a review from codyoss December 27, 2019 21:20
@codyoss
Copy link
Member

codyoss commented Dec 27, 2019

LGTM, we should get this integrated into our CI eventually.

@cvgw
Copy link
Collaborator Author

cvgw commented Dec 27, 2019

created #373

@cvgw cvgw merged commit de9f6c5 into master Dec 27, 2019
@cvgw cvgw deleted the u/cvgw/add_parseFile_bench branch December 27, 2019 21:37
@@ -106,3 +106,10 @@ func checkGreeterImports(t *testing.T, imports map[string]string) {
t.Errorf("Expected import not to have key \"v1\"")
}
}

func Benchmark_parseFile(b *testing.B) {
Copy link
Member

@codyoss codyoss Dec 27, 2019

Choose a reason for hiding this comment

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

Suggested change
func Benchmark_parseFile(b *testing.B) {
func BenchmarkParseFile(b *testing.B) {

nit: naming

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants