Add makefile target for ffjson
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
4e99e8fb89
commit
cfec788d67
5
Makefile
5
Makefile
|
@ -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/ *~
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue