@Benchmark
  @BenchmarkMode(Mode.AverageTime)
  @OutputTimeUnit(TimeUnit.NANOSECONDS)
  public Map<String, AttributeValue> createAttributeMap(Data data) {
    Map<String, AttributeValue> attributeMap = new HashMap<>(data.size);
    for (int i = 0; i < data.size; i++) {
      attributeMap.put(data.attributeKeys[i], data.attributeValues[i]);
    }
    return attributeMap;
  }
@ Benchmark @ BenchmarkMode ( Mode . AverageTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public Map < String , AttributeValue > createAttributeMap ( Data data ) { Map < String , AttributeValue > attributeMap = new HashMap < > ( data . size ) ; for ( int i = 0 ; i < data . size ; i ++ ) { attributeMap . put ( data . attributeKeys [ i ] , data . attributeValues [ i ] ) ; } return attributeMap ; }
Create an AttributeMap.