for (int r = 0; r < repeat; ++r) {
try {
if (threads > 1) {
runThreadTest(testClass, dp, threads, bufferSize);
} else {
IDiskTest test = testClass.newInstance();
test.setFile(dp.getNextFile());
test.setBufferSize(bufferSize);
test.setParser(dp.parser);
test.run();
}
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();