use of org.apache.logging.log4j.core.layout.StringBuilderEncoder in project logging-log4j2 by apache.
the class TextEncoderHelperBenchmark method textEncoderEncode.
@Benchmark
@BenchmarkMode(Mode.SampleTime)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
public long textEncoderEncode() {
final StringBuilderEncoder helper = getEncoder();
helper.encode(BUFF_TEXT, destination);
return destination.count;
}
Aggregations