Run non-optimize FASTCOVER 5 times in benchmark

This commit is contained in:
Jennifer Liu
2018-08-06 17:54:04 -07:00
parent ab6e038482
commit 0feed8e1f8
@@ -416,11 +416,13 @@ int main(int argCount, const char* argv[])
} }
/* for fastCover (with k and d provided) */ /* for fastCover (with k and d provided) */
const int fastResult = benchmarkDictBuilder(srcInfo, maxDictSize, NULL, NULL, NULL, &fastParam); for (int i = 0; i < 5; i++) {
DISPLAYLEVEL(2, "k=%u\nd=%u\nf=%u\nsteps=%u\nsplit=%u\n", fastParam.k, fastParam.d, fastParam.f, fastParam.steps, (unsigned)(fastParam.splitPoint * 100)); const int fastResult = benchmarkDictBuilder(srcInfo, maxDictSize, NULL, NULL, NULL, &fastParam);
if(fastResult) { DISPLAYLEVEL(2, "k=%u\nd=%u\nf=%u\nsteps=%u\nsplit=%u\n", fastParam.k, fastParam.d, fastParam.f, fastParam.steps, (unsigned)(fastParam.splitPoint * 100));
result = 1; if(fastResult) {
goto _cleanup; result = 1;
goto _cleanup;
}
} }
} }