Add makefile target for ffjson

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-03-16 11:06:57 -07:00
parent 4e99e8fb89
commit cfec788d67
2 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,11 @@ test: .govet .golint .gitvalidation
.gitvalidation: .gitvalidation:
git-validation -q -run DCO,short-subject -v -range $(EPOCH_TEST_COMMIT)..HEAD git-validation -q -run DCO,short-subject -v -range $(EPOCH_TEST_COMMIT)..HEAD
# `go get https://github.com/pquerna/ffjson`
ffjson:
cd specs-go/ && ffjson config.go
cd specs-go/ && ffjson state.go
clean: clean:
rm -rf output/ *~ rm -rf output/ *~

View File

@ -130,7 +130,7 @@ var spec = &Spec{
}, },
} }
func BenchmarkMarsalSpec(b *testing.B) { func BenchmarkMarshalSpec(b *testing.B) {
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
_, err := ffjson.Marshal(spec) _, err := ffjson.Marshal(spec)
if err != nil { if err != nil {