@@ -0,0 +1,2148 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements. See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache license, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License. You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the license for the specific language governing permissions and%0A * limitations under the license.%0A */%0Apackage org.apache.logging.log4j;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.InputStream;%0A%0Aimport org.apache.logging.log4j.core.config.ConfigurationFactory;%0Aimport org.apache.logging.log4j.core.config.Configurator;%0Aimport org.junit.Test;%0A%0A%0Apublic class Log4jInitPerformance %7B%0A%0A%0A    @Test%0A    public void testInitialize() throws Exception %7B%0A        String log4jConfigString =%0A            %22%3Cconfiguration name=%5C%22ConfigTest%5C%22 status=%5C%22debug%5C%22 %3E%22 +%0A                %22%3Cappenders%3E%22 +%0A                %22 %3CConsole name=%5C%22STDOUT%5C%22%3E%22 +%0A                %22    %3CPatternLayout pattern=%5C%22%25m%25n%5C%22/%3E%22 +%0A                %22 %3C/Console%3E%22 +%0A                %22%3C/appenders%3E%22 +%0A                %22%3Cloggers%3E%22 +%0A                %22  %3Croot level=%5C%22error%5C%22%3E%22 +%0A                %22    %3Cappender-ref ref=%5C%22STDOUT%5C%22/%3E%22 +%0A                %22  %3C/root%3E%22 +%0A                %22%3C/loggers%3E%22 +%0A                %22%3C/configuration%3E%22;%0A        final InputStream is = new ByteArrayInputStream(log4jConfigString.getBytes());%0A        final ConfigurationFactory.ConfigurationSource source =%0A            new ConfigurationFactory.ConfigurationSource(is);%0A        long begin = System.currentTimeMillis();%0A        Configurator.initialize(null, source);%0A        long tookForInit = System.currentTimeMillis() - begin;%0A        System.out.println(%22log4j 2.0 initialization took %22 + tookForInit + %22ms%22);%0A    %7D%0A%0A%7D

Add initialization performance test