public class TimeFormatBenchmark extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeFormatBenchmark.BufferState |
Constructor and Description |
---|
TimeFormatBenchmark() |
Modifier and Type | Method and Description |
---|---|
void |
baseline() |
int |
customFastFormatBytes(TimeFormatBenchmark.BufferState state) |
String |
customFastFormatString(TimeFormatBenchmark.BufferState state) |
int |
customFormatBytes(TimeFormatBenchmark.BufferState state) |
String |
customFormatString(TimeFormatBenchmark.BufferState state) |
ByteBuffer |
fastFormat(long time,
ByteBuffer buffer) |
ByteBuffer |
format(long time,
ByteBuffer buffer) |
static void |
main(String[] args) |
int |
simpleDateFormatBytes(TimeFormatBenchmark.BufferState state) |
String |
simpleDateFormatString() |
public static void main(String[] args)
public void baseline()
public String simpleDateFormatString()
public int simpleDateFormatBytes(TimeFormatBenchmark.BufferState state)
public String customFastFormatString(TimeFormatBenchmark.BufferState state)
public int customFastFormatBytes(TimeFormatBenchmark.BufferState state)
public String customFormatString(TimeFormatBenchmark.BufferState state)
public int customFormatBytes(TimeFormatBenchmark.BufferState state)
public ByteBuffer fastFormat(long time, ByteBuffer buffer)
public ByteBuffer format(long time, ByteBuffer buffer)
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.