org.apache.logging.log4j.perf.jmh
Class TimeFormatBenchmark
java.lang.Object
org.apache.logging.log4j.perf.jmh.TimeFormatBenchmark
public class TimeFormatBenchmark
- extends Object
Tests performance of various time format implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeFormatBenchmark
public TimeFormatBenchmark()
main
public static void main(String[] args)
baseline
public void baseline()
simpleDateFormatString
public String simpleDateFormatString()
simpleDateFormatBytes
public int simpleDateFormatBytes(TimeFormatBenchmark.BufferState state)
customFastFormatString
public String customFastFormatString(TimeFormatBenchmark.BufferState state)
customFastFormatBytes
public int customFastFormatBytes(TimeFormatBenchmark.BufferState state)
customFormatString
public String customFormatString(TimeFormatBenchmark.BufferState state)
customFormatBytes
public int customFormatBytes(TimeFormatBenchmark.BufferState state)
fastFormat
public ByteBuffer fastFormat(long time,
ByteBuffer buffer)
format
public ByteBuffer format(long time,
ByteBuffer buffer)
Copyright c 1999-2014 Apache Software Foundation. All Rights Reserved. Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.