Skip to content

Commit

Permalink
update gojay
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispqt committed Dec 20, 2018
1 parent a56b3cd commit d1c4e8e
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 110 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

[[constraint]]
name = "github.com/francoispqt/gojay"
version = "1.2.6"
version = "1.2.7"
2 changes: 1 addition & 1 deletion benchmarks/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: benchtrace
benchtrace:
go test -c & GODEBUG=allocfreetrace=1 ./benchmarks.test -test.run=none -test.bench=^BenchmarkScrib -test.benchtime=10ms 2>trace.log
go test -c & GODEBUG=allocfreetrace=1 ./benchmarks.test -test.run=none -test.bench=^BenchmarkOneLogTrace -test.benchtime=10ms 2>trace.log

.PHONY: benchonelog
benchonelog:
Expand Down
8 changes: 8 additions & 0 deletions benchmarks/onelog_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,11 @@ func BenchmarkOnelog(b *testing.B) {
})
})
}

func BenchmarkOneLogTrace(b *testing.B) {
logger := onelog.New(ioutil.Discard, onelog.ALL)
b.ReportAllocs()
for i := 0; i < b.N; i++ {
logger.Info("message")
}
}
9 changes: 4 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
module github.com/gokit/onelog
module github.com/francoispqt/onelog

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/francoispqt/gojay v0.0.0-20181018093702-688c5d008625
github.com/francoispqt/onelog v0.0.0-20181018141347-eb9cb127e764
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/davecgh/go-spew v1.1.1
github.com/francoispqt/gojay v0.0.0-20181220093123-f2cc13a668ca
github.com/pmezard/go-difflib v1.0.0
github.com/stretchr/testify v1.2.2
)
9 changes: 2 additions & 7 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/francoispqt/gojay v0.0.0-20181018093702-688c5d008625 h1:uhhBCKCbZlCe/jESjdgjGfHxnjC0cXyf/M0EmyenOpg=
github.com/francoispqt/gojay v0.0.0-20181018093702-688c5d008625/go.mod h1:H8Wgri1Asi1VevY3ySdpIK5+KCpqzToVswNq8g2xZj4=
github.com/francoispqt/onelog v0.0.0-20181018141347-eb9cb127e764 h1:zruWflCw1EHkg2cS7qP8qmUQ42e6/EQLR8npm2pwiQE=
github.com/francoispqt/onelog v0.0.0-20181018141347-eb9cb127e764/go.mod h1:YawD7stzYj2osdt+5afKe//+bGLd3mdDtYFxsYiY118=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/francoispqt/gojay v0.0.0-20181220093123-f2cc13a668ca h1:F2BD6Vhei4w0rtm4eNpzylNsB07CcCbpYA+xlqMx3mA=
github.com/francoispqt/gojay v0.0.0-20181220093123-f2cc13a668ca/go.mod h1:H8Wgri1Asi1VevY3ySdpIK5+KCpqzToVswNq8g2xZj4=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
Loading

0 comments on commit d1c4e8e

Please sign in to comment.