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

Add 'benchmark' target to Makefile that runs all benchmarks #1498

Merged
merged 4 commits into from
Oct 23, 2019

Conversation

fkaleo
Copy link
Contributor

@fkaleo fkaleo commented Oct 17, 2019

No description provided.

@fkaleo fkaleo mentioned this pull request Oct 17, 2019
Makefile Outdated Show resolved Hide resolved
@@ -5,6 +5,8 @@ test:
CGO_ENABLED=1 go test -race -short ./...
test-all:
CGO_ENABLED=1 go test -race ./...
benchmark:
CGO_ENABLED=0 go test -count=10 -run='^$$' -bench=. -benchtime=100ms ./... | tee benchmark.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

might want to 2>&1 to ensure errors also get written to the file?

@fkaleo fkaleo merged commit dc8b238 into master Oct 23, 2019
@fkaleo fkaleo deleted the make_benchmark branch October 23, 2019 13:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants