@Test (timeout = 3000)
public void microBenchmark()
    throws Exception
{

    String prefix = temp.newFolder("test4-benchmark").getAbsolutePath();
    Slot slot = new Slot(prefix, (100 * 1024 * 1024));
    Timber.LogEvent event = makeLogEvent(0);
    int numMessages = 100000;
    long start = System.currentTimeMillis();
    for (int i = 0; i < numMessages; i++) {
        slot.write(event);
    }
    long duration = System.currentTimeMillis() - start;
    long rate = (numMessages * 1000) / duration;
    log.info("Slot microbenchmark: "+ numMessages + " in " + duration + " ms,"
             + " rate = " + rate + " msg/sec");
}