Package zipkin2.codec

Class CodecBenchmarks

java.lang.Object
zipkin2.codec.CodecBenchmarks
Direct Known Subclasses:
CodecBenchmarks_jmhType_B1

public class CodecBenchmarks
extends Object
The bundled java codec aims to be both small in size (i.e. does not significantly increase the size of zipkin's jar), and efficient. It may not always be fastest, but we should try to keep it competitive.

Note that the wire benchmarks use their structs, not ours. This will result in more efficient writes as there's no hex codec of IDs, stringifying of IPs etc. A later change could do that, but it likely still going to be more efficient than our dependency-free codec. This means in cases where extra dependencies are ok (such as our server), we could consider using wire.