mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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
File diff suppressed because it is too large
Load Diff
+2071
-2001
File diff suppressed because it is too large
Load Diff
@@ -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 => ../
|
||||
|
||||
@@ -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=
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
//+build tools
|
||||
|
||||
package benchmark
|
||||
|
||||
import (
|
||||
_ "github.com/ugorji/go/codec/codecgen"
|
||||
)
|
||||
Reference in New Issue
Block a user