org.apache.logging.log4j.perf.jmh
Class TimeFormatBenchmark

java.lang.Object
  extended by org.apache.logging.log4j.perf.jmh.TimeFormatBenchmark

public class TimeFormatBenchmark
extends Object

Tests performance of various time format implementation.


Nested Class Summary
static class TimeFormatBenchmark.BufferState
           
 
Constructor Summary
TimeFormatBenchmark()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeFormatBenchmark

public TimeFormatBenchmark()
Method Detail

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.