Skip to content

Commit

Permalink
Add makefile target for ffjson
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
  • Loading branch information
crosbymichael authored and Ma Shimiao committed Aug 18, 2016
1 parent 9f8216f commit 68146ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ test: .govet .golint .gitvalidation
.gitvalidation:
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:
rm -rf output/ *~

2 changes: 1 addition & 1 deletion specs-go/serialize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ var spec = &Spec{
},
}

func BenchmarkMarsalSpec(b *testing.B) {
func BenchmarkMarshalSpec(b *testing.B) {
for i := 0; i < b.N; i++ {
_, err := ffjson.Marshal(spec)
if err != nil {
Expand Down

0 comments on commit 68146ad

Please sign in to comment.