From 6127d79d0d625b4128e09b7738e986531cb95680 Mon Sep 17 00:00:00 2001 From: Victor Starodub Date: Fri, 1 Apr 2016 23:22:08 +0300 Subject: [PATCH] No {} shell wildcards in makefile. Not benchmarking other libs by default. --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 959f3c0..ad89c12 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,11 @@ build: go build -i -o .root/bin/easyjson $(PKG)/easyjson generate: root build - .root/bin/easyjson -stubs .root/src/$(PKG)/tests/{snake,omitempty,data}.go + .root/bin/easyjson -stubs \ + .root/src/$(PKG)/tests/snake.go \ + .root/src/$(PKG)/tests/data.go \ + .root/src/$(PKG)/tests/omitempty.go + .root/bin/easyjson -all .root/src/$(PKG)/tests/data.go .root/bin/easyjson -snake_case .root/src/$(PKG)/tests/snake.go .root/bin/easyjson -omit_empty .root/src/$(PKG)/tests/omitempty.go @@ -25,10 +29,14 @@ generate: root build test: generate root go test $(PKG)/{tests,jlexer,gen} - @go test -benchmem -tags use_easyjson -bench . $(PKG)/benchmark + go test -benchmem -tags use_easyjson -bench . $(PKG)/benchmark + +bench-other: generate root @go test -benchmem -bench . $(PKG)/benchmark @go test -benchmem -tags use_ffjson -bench . $(PKG)/benchmark @go test -benchmem -tags use_codec -bench . $(PKG)/benchmark + +bench-python: benchmark/ujson.sh