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

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

Merged
fkaleo merged 4 commits intomasterfrom
make_benchmark
Oct 23, 2019
Merged

Add 'benchmark' target to Makefile that runs all benchmarks#1498
fkaleo merged 4 commits intomasterfrom
make_benchmark

Conversation

@fkaleo
Copy link
Copy Markdown
Contributor

@fkaleo fkaleo commented Oct 17, 2019

No description provided.

@fkaleo fkaleo mentioned this pull request Oct 17, 2019
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
Copy Markdown
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.

2 participants