fix bench-other

* Update bench-other make command
* Update benchmark dependencies
* Re-generate data_{codec,ffjson}.go as they were broken
This commit is contained in:
Aleksandr Razumov
2019-08-29 18:48:49 +03:00
parent dde7f5d748
commit aef59a06fb
7 changed files with 5595 additions and 8397 deletions
+1 -5
View File
@@ -43,11 +43,7 @@ test: generate
golint -set_exit_status ./tests/*_easyjson.go
bench-other: generate
cd benchmark
@go test -benchmem -bench .
@go test -benchmem -tags use_ffjson -bench .
@go test -benchmem -tags use_jsoniter -bench .
@go test -benchmem -tags use_codec -bench .
cd benchmark && make
bench-python:
benchmark/ujson.sh
+5
View File
@@ -0,0 +1,5 @@
all:
go test -benchmem -bench .
go test -benchmem -tags use_ffjson -bench .
go test -benchmem -tags use_jsoniter -bench .
go test -benchmem -tags use_codec -bench .
+3499 -6391
View File
File diff suppressed because it is too large Load Diff
+2071 -2001
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -7,6 +7,8 @@ require (
github.com/mailru/easyjson v0.0.0
github.com/pquerna/ffjson v0.0.0-20190813045741-dac163c6c0a9
github.com/ugorji/go/codec v1.1.7
github.com/ugorji/go/codec/codecgen v1.1.7
golang.org/x/tools v0.0.0-20190829051458-42f498d34c4d // indirect
)
replace github.com/mailru/easyjson => ../
+10
View File
@@ -19,3 +19,13 @@ github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
github.com/ugorji/go/codec/codecgen v1.1.7 h1:6BU4y9NIgvVMNetSGxkH9lOOa2UB5b8sCHC6+8m5lVc=
github.com/ugorji/go/codec/codecgen v1.1.7/go.mod h1:FMgcDIjFRtjQPUVM3GN592ic8epl2qsvfNPhezMgP8Y=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190829051458-42f498d34c4d h1:yqT69RdmShXXRtsT9jS6Iy0FFLWGLCe3IqGE0vsP0m4=
golang.org/x/tools v0.0.0-20190829051458-42f498d34c4d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+7
View File
@@ -0,0 +1,7 @@
//+build tools
package benchmark
import (
_ "github.com/ugorji/go/codec/codecgen"
)