static void doScan(MemStore ms, int iteration) throws IOException {
    long nanos = System.nanoTime();
    KeyValueScanner s = ms.getScanners(0).get(0);
    s.seek(KeyValueUtil.createFirstOnRow(new byte[] {}));

    System.out.println(iteration + " create/seek took: " + (System.nanoTime() - nanos) / 1000);
    int cnt = 0;
    while (s.next() != null)
      ++cnt;

    System.out
      .println(iteration + " took usec: " + (System.nanoTime() - nanos) / 1000 + " for: " + cnt);

  }
Adds {@link #ROW_COUNT} rows and {@link #QUALIFIER_COUNT}
@param hmc Instance to add rows to.
@return How many rows we added.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestDefaultMemStore.java