rakutentech / kafka-firehose-nozzle

Forward logs from the Cloud Foundry Firehose to Apache Kafka
MIT License
13 stars 8 forks source link

Use the optimized easyjson sonde-go encoders #20

Closed CAFxX closed 6 years ago

CAFxX commented 6 years ago

Bump sonde-go and switch to use easyjson marshalling

CAFxX commented 6 years ago
godep go test -bench='.' -benchtime=5s
goos: darwin
goarch: amd64
pkg: github.com/rakutentech/kafka-firehose-nozzle
BenchmarkJsonEncode-4                1000000          6666 ns/op
BenchmarkEasyJsonEncodeBuffer-4      2000000          3256 ns/op
BenchmarkEasyJsonEncodeWriter-4      3000000          2944 ns/op
PASS
ok      github.com/rakutentech/kafka-firehose-nozzle    28.688s