1
0
mirror of https://github.com/facebook/zstd.git synced 2025-12-24 17:21:03 +03:00

[fullbench] Fix measurements

This commit is contained in:
Nick Terrell
2019-04-15 21:01:27 -07:00
parent a821aee3b1
commit a48e32ca50

View File

@@ -497,7 +497,7 @@ static int benchMem(unsigned benchNb,
BMK_benchParams_t bp;
BMK_runTime_t bestResult;
bestResult.sumOfReturn = 0;
bestResult.nanoSecPerRun = (double)(-1);
bestResult.nanoSecPerRun = (double)TIMELOOP_NANOSEC * 2000000000; /* hopefully large enough : must be larger than any potential measurement */
assert(tfs != NULL);
bp.benchFn = benchFunction;