private void testPerformance(String input) {
        final int NUM = 100000000;
        long elapsedTimeOwnImpl;
        long ownCount = 0;
        long javaCount = 0;
        {
            long startTimeOwnImpl = System.currentTimeMillis();
            for (int i = 0; i < NUM; i++) {
                ownCount += Lowercase.toLowerCase(input).length();
            }
            elapsedTimeOwnImpl = System.currentTimeMillis() - startTimeOwnImpl;
            System.err.println("Own implementation: " + elapsedTimeOwnImpl);
        }

        long elapsedTimeJava;
        {
            long startTimeJava = System.currentTimeMillis();
            for (int i = 0; i < NUM; i++) {
                javaCount += input.toLowerCase(Locale.ENGLISH).length();
            }
            elapsedTimeJava = System.currentTimeMillis() - startTimeJava;
            System.err.println("Java's implementation: " + elapsedTimeJava);
        }

        long diff = elapsedTimeJava - elapsedTimeOwnImpl;
        double diffPercentage = (((double) diff) / ((double) elapsedTimeJava)) * 100.0;
        System.err.println("Own implementation is " + diffPercentage + " % faster. owncount=" + ownCount + " javaCount=" + javaCount);
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
@since 5.1.14
vespajlib/src/test/java/com/yahoo/text/LowercaseTestCase.java