@@ -0,0 +1,1876 @@
+package net.openhft.chronicle;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0Aimport java.util.Random;%0A%0A/**%0A * @author luke%0A *         Date: 4/7/15%0A */%0Apublic class VanillaBlockSizeTest %7B%0A    @Test%0A    public void testMaxSize() throws IOException %7B%0A        final int SAMPLE = 10000000;%0A        final int ITEM_SIZE = 256;%0A        byte%5B%5D%5B%5D byteArrays;%0A        Random random = new Random();%0A%0A        Chronicle chronicle = ChronicleQueueBuilder.vanilla(%22blocksizetest%22)%0A                .dataBlockSize(Integer.MAX_VALUE)%0A                .indexBlockSize(Integer.MAX_VALUE)%0A                .build();%0A        ExcerptAppender appender = chronicle.createAppender();%0A%0A        System.out.println(%22Allocating...%22);%0A        byteArrays = new byte%5BSAMPLE%5D%5BITEM_SIZE%5D;%0A%0A        // Randomize%0A        System.out.println(%22Randomize...%22);%0A        for (int i=0;i%3CSAMPLE;i++) %7B%0A            random.nextBytes(byteArrays%5B0%5D);%0A        %7D%0A%0A        System.out.println(%22GC...%22);%0A        System.gc();%0A%0A        // Warmup%0A        System.out.println(%22Warmup...%22);%0A        for (int i=0;i%3CSAMPLE;i++) %7B%0A            appender.startExcerpt(ITEM_SIZE);%0A            appender.write(byteArrays%5Bi%5D, 0, ITEM_SIZE);%0A            appender.finish();%0A        %7D%0A%0A        System.out.println(%22Test...%22);%0A        int index = 0;%0A        int count = 0;%0A        while (true) %7B%0A            if (index %3E= SAMPLE) %7B%0A                index = 0;%0A            %7D%0A            long start = System.nanoTime();%0A            appender.startExcerpt(ITEM_SIZE);%0A            appender.write(byteArrays%5Bindex%5D, 0, ITEM_SIZE);%0A            appender.finish();%0A%0A            if (count %25 100000000 == 0) %7B%0A                System.out.println(count+%22 written%22);%0A            %7D%0A%0A            index++;%0A            count++;%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        new VanillaBlockSizeTest().testMaxSize();%0A    %7D%0A%7D%0A

add vanilla block size test