@Test
    public void comparePerformance() {

        long timeStringConcatenation = measureTime(() ->
                {
                    for (int i = 0; i < StringExampleTest.LOOP_COUNT; i++) {
                        testStringConcatenation();
                    }
                }
        );
        System.out.println("timeStringConcatenation : " + timeStringConcatenation);

        long timeConcatenateUsingStringBuffer = measureTime(() ->
                {
                    for (int i = 0; i < StringExampleTest.LOOP_COUNT; i++) {
                        testConcatenateUsingStringBuffer();
                    }
                }
        );
        System.out.println("timeConcatenateUsingStringBuffer : " + timeConcatenateUsingStringBuffer);

        long timeConcatenateUsingStringBuilder = measureTime(() ->
                {
                    for (int i = 0; i < StringExampleTest.LOOP_COUNT; i++) {
                        testConcatenateUsingStringBuilder();
                    }
                }
        );
        System.out.println("timeConcatenateUsingStringBuilder : " + timeConcatenateUsingStringBuilder);

        long timeConcatenateUsingStringJoin = measureTime(() ->
                {
                    for (int i = 0; i < StringExampleTest.LOOP_COUNT; i++) {
                        testConcatenateUsingStringJoin();
                    }
                }
        );
        System.out.println("timeConcatenateUsingStringJoin : " + timeConcatenateUsingStringJoin);


    }