org.apache.log4j.performance

Class ConcatVsArray


public class ConcatVsArray
extends java.lang.Object

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.

Author:
Ceki Gülcü

Method Summary

static void
main(args[] )

Method Details

main

public static void main(args[] )


Copyright 2000-2002 Apache Software Foundation.