Skip to content

Commit 68e51c4

Browse files
committed
Add an example for keyed lookup
1 parent 9eaa9a3 commit 68e51c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chronicle/src/test/java/com/higherfrequencytrading/chronicle/examples/ExampleSimpleWriteReadMain.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
import com.higherfrequencytrading.chronicle.Excerpt;
2020
import com.higherfrequencytrading.chronicle.impl.IndexedChronicle;
2121
import com.higherfrequencytrading.chronicle.tools.ChronicleTools;
22-
import com.higherfrequencytrading.chronicle.tools.ChronicleTools;
2322

2423
import java.io.IOException;
25-
import java.util.Random;
2624

2725
/**
2826
* @author peter.lawrey
2927
*/
3028
public class ExampleSimpleWriteReadMain {
3129
public static void main(String... args) throws IOException {
32-
final int runs = 100 * 1000000;
30+
final long runs = 1000 * 1000000L;
31+
final int batchSize = 10;
32+
System.out.printf("Messages to write %,d in batches of %,d%n", runs, batchSize);
3333
long start = System.nanoTime();
3434
final String basePath = System.getProperty("java.io.tmpdir") + "/ExampleSimpleWriteReadMain";
3535
ChronicleTools.deleteOnExit(basePath);

0 commit comments

Comments
 (0)