public Result doComparisonTest(Properties properties) throws Exception {
  final long timeout=Long.parseLong(properties.getProperty(TestOptions.TIMEOUT));
  final int ntrials=Integer.parseInt(properties.getProperty(TestOptions.NTRIALS));
  final int nclients=Integer.parseInt(properties.getProperty(TestOptions.NCLIENTS));
  final double percentReaders=Double.parseDouble(properties.getProperty(TestOptions.PERCENT_READERS));
  final double percentWritersWillFlush=Double.parseDouble(properties.getProperty(TestOptions.PERCENT_WRITER_WILL_FLUSH));
  final int reclen=Integer.parseInt(properties.getProperty(TestOptions.RECLEN));
  final int nwritesPerTask=Integer.parseInt(properties.getProperty(TestOptions.NWRITES));
  final int nreadsPerTask=Integer.parseInt(properties.getProperty(TestOptions.NREADS));
  final AtomicInteger nerr=new AtomicInteger();
  final Result result=doMRMWTest(store,timeout,ntrials,nclients,percentReaders,percentWritersWillFlush,reclen,nwritesPerTask,nreadsPerTask,nerr);
  return result;
}

public Result doComparisonTest ( Properties properties ) throws Exception { final long timeout = Long . parseLong ( properties . getProperty ( TestOptions . TIMEOUT ) ) ; final int ntrials = Integer . parseInt ( properties . getProperty ( TestOptions . NTRIALS ) ) ; final int nclients = Integer . parseInt ( properties . getProperty ( TestOptions . NCLIENTS ) ) ; final double percentReaders = Double . parseDouble ( properties . getProperty ( TestOptions . PERCENT_READERS ) ) ; final double percentWritersWillFlush = Double . parseDouble ( properties . getProperty ( TestOptions . PERCENT_WRITER_WILL_FLUSH ) ) ; final int reclen = Integer . parseInt ( properties . getProperty ( TestOptions . RECLEN ) ) ; final int nwritesPerTask = Integer . parseInt ( properties . getProperty ( TestOptions . NWRITES ) ) ; final int nreadsPerTask = Integer . parseInt ( properties . getProperty ( TestOptions . NREADS ) ) ; final AtomicInteger nerr = new AtomicInteger ( ) ; final Result result = doMRMWTest ( store , timeout , ntrials , nclients , percentReaders , percentWritersWillFlush , reclen , nwritesPerTask , nreadsPerTask , nerr ) ; return result ; }
setup and run a test .
