public static void comparePerformance(final int rounds,
                                          final long iterations,
                                          final Consumer<String> outputConsumer,
                                          final TimedCase... testCases) {
        comparePerformance(rounds, iterations, null, outputConsumer, testCases);
    }
Does a basic serialise - de-serialise test with an equality check on the initial
and final objects. The optional jsonConsumer allows assertions to be performed
by the caller on the serialised form.

@return The de-serialised object for further inspection by the caller.
stroom-test-common/src/main/java/stroom/test/common/TestUtil.java