reduce the throughput for ci

This commit is contained in:
gtully 2016-04-22 14:49:19 +01:00
parent 930a74c696
commit 43d8205cf0
1 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ public class PreallocationJournalLatencyTest {
File dataDirectory = new File("./target/activemq-data/kahadb" + randInt);
KahaDBStore store = new KahaDBStore();
store.setJournalMaxFileLength(16*1204*1024);
store.deleteAllMessages();
store.setDirectory(dataDirectory);
store.setPreallocationStrategy(preallocationStrategy);
@ -68,7 +69,7 @@ public class PreallocationJournalLatencyTest {
ByteSequence byteSequence = new ByteSequence(new byte[8*1024]);
TimeStatisticImpl timeStatistic = new TimeStatisticImpl("append", "duration");
for (int i=0;i<300000; i++) {
for (int i=0;i<5000; i++) {
final long start = System.currentTimeMillis();
journal.write(byteSequence, true);
timeStatistic.addTime(System.currentTimeMillis() - start);