Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » performance » [javadoc | source]
org.apache.log4j.performance
public class: ConcatVsArray [javadoc | source]
java.lang.Object
   org.apache.log4j.performance.ConcatVsArray
Measure difference in performance of string concatenation versus creating an anonymous string array.

You should be able to see that anonymous string array construction is significatnly faster than string concatenation. The difference increases proportionally with the length of the strings to be concatanated.

Method from org.apache.log4j.performance.ConcatVsArray Summary:
Usage,   main
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.performance.ConcatVsArray Detail:
 static  void Usage() 
 public static  void main(String[] args)