### Question:
IdCreator implements IdCreate { public long generateId(int bizFlagValue){ return getNextId(bizFlagValue); }  long generateId(int bizFlagValue); NaiveMemcacheClient getIdGenerateClient(); void setIdGenerateClient(NaiveMemcacheClient idGenerateClient);  }### Answer:
@Test public void testGenerateIdForUuid() { IdCreator idCreator = createIdCreator("testuuid:5001,testuuid:5001"); long t1 = System.currentTimeMillis(); int count = 10; for(int i = 0; i < count; i++){ long id = idCreator.generateId(2); ApiLogger.debug("IdCreatorTest testGenerateIdForUuid id:" + id); } long t2 = System.currentTimeMillis(); ApiLogger.debug(String.format("count=%s,time=%sms", count, (t2 - t1))); }
@Test public void testGenerateIdForUid() { IdCreator idCreator = createIdCreator("testuid:5101,testuid:5101"); long t1 = System.currentTimeMillis(); int count = 10; for(int i = 0; i < count; i++){ long id = idCreator.generateId(2); ApiLogger.debug("IdCreatorTest testGenerateIdForUid id:" + id); } long t2 = System.currentTimeMillis(); ApiLogger.debug(String.format("count=%s,time=%sms", count, (t2 - t1))); }