ByteStringDecode
com.netflix.atlas.eval.stream.ByteStringDecode
class ByteStringDecode
Compare decoding a ByteString to JSON:
- ByteString > String > Json.decode
- ByteString > Array[Byte] (reused) > Json.decode
> jmh:run -prof gc -wi 10 -i 10 -f1 -t1 .*ByteStringDecode.*
Initial results:
Throughput:
Benchmark Mode Cnt Score Error Units
decodeFromByteString thrpt 10 344793.104 ± 11891.506 ops/s
decodeFromString thrpt 10 299394.816 ± 9240.783 ops/s
Allocation rate per operation:
Benchmark Mode Cnt Score Error Units
decodeFromByteString thrpt 10 3928.000 ± 0.002 B/op
decodeFromString thrpt 10 4680.001 ± 0.002 B/op
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article