コード例 #1
0
  @Warmup(global = false)
  public void warmup() {
    waitClusterSize(LOGGER, hazelcastInstance, minNumberOfMembers);
    keys = generateStringKeys(keyCount, keyLength, keyLocality, hazelcastInstance);
    values = generateStrings(valueCount, valueLength);

    Random random = new Random();
    for (String key : keys) {
      String value = values[random.nextInt(valueCount)];
      map.put(key, value);
    }
  }
コード例 #2
0
 @Teardown
 public void tearDown() {
   map.destroy();
   LOGGER.info(getOperationCountInformation(hazelcastInstance));
 }