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

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

public class ClocksBenchmark
extends Object

Tests performance of various clock implementation.


Constructor Summary
ClocksBenchmark()
           
 
Method Summary
 void baseline()
           
 long cachedClock()
           
 long coarseCachedClock()
           
 long fixedClock()
           
 long fixedFinalClock()
           
 long systemClock()
           
 long systemCurrentTimeMillis()
           
 void up()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClocksBenchmark

public ClocksBenchmark()
Method Detail

up

public void up()

baseline

public void baseline()

systemCurrentTimeMillis

public long systemCurrentTimeMillis()

systemClock

public long systemClock()

cachedClock

public long cachedClock()

coarseCachedClock

public long coarseCachedClock()

fixedClock

public long fixedClock()

fixedFinalClock

public long fixedFinalClock()


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.