Skip to content

add simple benchmarks for speed testing #61

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 5 commits into from
May 14, 2013

Conversation

arnehormann
Copy link
Member

No description provided.


var (
// dsn from driver_test.go
sample = []byte(strings.Repeat("0123456789abcdef", 1024*1024))
Copy link
Member

Choose a reason for hiding this comment

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

Generate the sample only if we actually run a benchmark. Use a helper function which checks if sample == nil and generates the sample in this case. Or come up with something better ;)

@julienschmidt
Copy link
Member

For now just add the benchmarks to driver_test.go instead of the single file

@arnehormann
Copy link
Member Author

done, PTAL

@julienschmidt
Copy link
Member

LGTM

arnehormann added a commit that referenced this pull request May 14, 2013
add simple benchmarks for speed testing
@arnehormann arnehormann merged commit d32925b into go-sql-driver:master May 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants