int unitCount = 100 ;
StopWatch sw = new StopWatch() ;
sw.start() ;
for (int i = 0; i < unitCount; i++) {
IUserCommand cmd = dc.createUserCommand("insert into performance_sample(a, b, c) values(?, ?, ?)") ;
cmd.addParam(0, unitCount + i) ;
cmd.addParam(1, "No." + (unitCount + i) + ".....") ;
cmd.addParam(2, RandomUtil.nextRandomString(RandomUtil.nextRandomInt(10, 50), RandomUtil.NUMBER_CHAR_TYPE)) ;
cmd.execUpdate() ;
}
Debug.debug(sw.getTime()) ;
assertEquals(true, unitCount * 50 > sw.getTime()) ;
sw.stop() ;
}