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

Add a benchmark for enqueueing data #8

Merged
merged 1 commit into from Dec 20, 2016

Conversation

kevinburke
Copy link
Contributor

This lets us measure how fast jobs can be enqueued (about 0.8ms per run).
Updates a bunch of *testing.T to instead take the testing.TB interface, so
we can pass a *testing.B and have things still work. Adds a Make target for
running benchmarks. Run the benchmarks in Travis CI, and specify the
go_import_path so forks still build okay.

This lets us measure how fast jobs can be enqueued (about 0.8ms per run).
Updates a bunch of *testing.T to instead take the testing.TB interface, so
we can pass a *testing.B and have things still work. Adds a Make target for
running benchmarks. Run the benchmarks in Travis CI, and specify the
go_import_path so forks still build okay.
@@ -63,7 +63,7 @@ func RandomId(prefix string) types.PrefixUUID {
}
}

func CreateJob(t *testing.T, j models.Job) models.Job {
func CreateJob(t testing.TB, j models.Job) models.Job {
Copy link
Contributor

Choose a reason for hiding this comment

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

How come testing.TB isn't passed by reference?

@kevinburke
Copy link
Contributor Author

kevinburke commented Dec 19, 2016 via email

Copy link
Contributor

@caseycrites caseycrites left a comment

Choose a reason for hiding this comment

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

🍧

@caseycrites caseycrites merged commit 1fd0c14 into Shyp:master Dec 20, 2016
@kevinburke kevinburke deleted the benchmarks-shyp branch January 22, 2020 22:06
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.

None yet

2 participants