diff --git a/Makefile b/Makefile index da09e98..72c7413 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,4 @@ protoc: protoc --gogo_out=. shared/protobuf/*.proto +bench: + CREATE_BENCHDATA=true go test -bench . -benchmem -cover ./... diff --git a/store/store_test.go b/store/store_test.go index 231ffe9..4661291 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -19,7 +19,7 @@ import ( var benchmarkDB = fmt.Sprintf("benchmark_store_%d.db", time.Now().Unix()) func init() { - if os.Getenv("CREATEBENCHDATA") != "true" { + if os.Getenv("CREATE_BENCHDATA") != "true" { return }