3 Commits

Author SHA1 Message Date
Aleksandr Razumov aef59a06fb fix bench-other
* Update bench-other make command
* Update benchmark dependencies
* Re-generate data_{codec,ffjson}.go as they were broken
2019-08-29 18:48:49 +03:00
Long Hoang 8d50f5104d Introduce build tags to disable unsafe package usage
Package `unsafe` is used in jlexer to prevent copying when casting from []byte to string, speeding up the marshalling process to a large extent. However, `unsafe` is not allowed in environments such as Google Appengine.

Therefore two build tags are introduced, which either of them can disable the use of unsafe package, falling back to conventional copy-based []byte to string conversion. The build tags are `easyjson_nounsafe` and `appengine` (which is set when building for Google Appengine)
2017-02-26 18:11:07 +08:00
Victor Starodub e8a814a5b5 Added a benchmark for github.com/ugorji/go/codec . Consistent naming for benchmarks. 2016-03-04 11:29:01 +10:00