String unitTestName = getClass().getSimpleName();
StatsLog.beginUnit(unitTestName);
try {
File homeDir = getHomeDirectory();
AbstractDataArray dataArray = createDataArray(homeDir);
if (dataArray.getLWMark() == 0) {
StatsLog.logger.info(">>> populate");
populate(dataArray);
StatsLog.logger.info(">>> validate");
validate(dataArray);
}
int timeAllocated = Math.round((float)_runTimeSeconds/3);
StatsLog.logger.info(">>> read only");
evalRead(dataArray, _numReaders, Math.min(timeAllocated, 10));
StatsLog.logger.info(">>> write only");
evalWrite(dataArray, timeAllocated);
dataArray.persist();
StatsLog.logger.info(">>> validate");
validate(dataArray);
StatsLog.logger.info(">>> read & write");
evalReadWrite(dataArray, _numReaders, timeAllocated, false);
dataArray.persist();
StatsLog.logger.info(">>> validate");
validate(dataArray);
StatsLog.logger.info(">>> check & write");
evalReadWrite(dataArray, _numReaders, timeAllocated, true);
dataArray.persist();
StatsLog.logger.info(">>> validate");
validate(dataArray);
dataArray.sync();
} catch(Exception e) {
e.printStackTrace();
}
cleanTestOutput();