@Test (timeout = 1000)
public void microBenchmarkTest() {

    LogEventFormatter form = new SingleLineFormatter();
    int numIterations = 1000;
    long start = System.currentTimeMillis();
    for (int i = 0; i < numIterations; i++) {
        form.format(event);
    }
    long duration = System.currentTimeMillis() - start;
    double formatsPerSecond = numIterations / ((double) duration / 1000.0);
    log.info("event formats per second: " + formatsPerSecond
             + " (" + numIterations + " iterations took " + duration + " milliseconds)");
}