{
handler.reset();
EXECUTOR.submit(batchConsumer);
final int batchSize = 10;
final SequenceBatch sequenceBatch = new SequenceBatch(batchSize);
long start = System.currentTimeMillis();
long offset = 0;
for (long i = 0; i < ITERATIONS; i += batchSize)
{
ringBuffer.nextEntries(sequenceBatch);
for (long c = sequenceBatch.getStart(), end = sequenceBatch.getEnd(); c <= end; c++)
{
ValueEntry entry = ringBuffer.getEntry(c);
entry.setValue(offset++);
}
ringBuffer.commit(sequenceBatch);