Package org.apache.log4j.performance

Package to measure the performance of the different log4j components.

Class Summary

ConcatVsArrayMeasure difference in performance of string concatenation versus creating an anonymous string array.
ListVsVectorCompares the performance of looping through a list versus a Vector.
LoggingMeasure the performance of logging.
NewVsSetLenThis program compares the cost of creating a new StringBuffer and converting it to a String versus keeping the same StringBuffer, setting its size to zero and then converting it to String.
NotLoggingMeasure the performance of evaluating whether to log or not to log, but not actually logging.
NOPWriter Extends Writer with methods that return immediately without doing anything.
NullAppender A bogus appender which calls the format method of its layout object but does not write the result anywhere.
SystemTimeMeasures the time required to make a System.currentTimeMillis() and Thread.currentThread().getName() calls.
Package to measure the performance of the different log4j components.

The org.apache.log4j.performance package is intended for internal use only. Consequently, the classes in this package are not included in the log4j.jar file.


Copyright 2000-2002 Apache Software Foundation.