public static void main(String[] args) throws IOException {
String basePath = TMP + "/DataStorePerfTest";
ChronicleTools.deleteOnExit(basePath);
IndexedChronicle chronicle = new IndexedChronicle(basePath);
chronicle.useUnsafe(true);
DataStore dataStore = new DataStore(chronicle, ModelMode.MASTER);
MapWrapper<String, byte[]> map = new MapWrapper<String, byte[]>(dataStore, "map",
String.class, byte[].class, new LinkedHashMap<String, byte[]>(), 160);
dataStore.add("map", map);
dataStore.start();
// generate keys and values
int keyCount = 100000;
String[] keys = new String[keyCount];
byte[][] bytes = new byte[keyCount][];