Search in sources :

Example 1 with ReverseProtoWriter

use of com.squareup.wire.ReverseProtoWriter in project wire by square.

the class EncodeBenchmark method wire4x.

@Benchmark
public void wire4x() throws IOException {
    ReverseProtoWriter writer = new ReverseProtoWriter();
    EmailSearchResponse.ADAPTER.encode(writer, SampleData.newMediumValueWire());
    writer.writeTo(buffer);
    buffer.clear();
}
Also used : ReverseProtoWriter(com.squareup.wire.ReverseProtoWriter) Benchmark(org.openjdk.jmh.annotations.Benchmark)

Aggregations

ReverseProtoWriter (com.squareup.wire.ReverseProtoWriter)1 Benchmark (org.openjdk.jmh.annotations.Benchmark)1