Update Makefile
This commit is contained in:
parent
a9f8f1eeea
commit
6694282a6b
2 changed files with 3 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -1,2 +1,4 @@
|
||||||
protoc:
|
protoc:
|
||||||
protoc --gogo_out=. shared/protobuf/*.proto
|
protoc --gogo_out=. shared/protobuf/*.proto
|
||||||
|
bench:
|
||||||
|
CREATE_BENCHDATA=true go test -bench . -benchmem -cover ./...
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
var benchmarkDB = fmt.Sprintf("benchmark_store_%d.db", time.Now().Unix())
|
var benchmarkDB = fmt.Sprintf("benchmark_store_%d.db", time.Now().Unix())
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if os.Getenv("CREATEBENCHDATA") != "true" {
|
if os.Getenv("CREATE_BENCHDATA") != "true" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue