separated bench module into benchfn and benchzstd

it shall be possible to use benchfn
without any dependency on zstd.
This commit is contained in:
Yann Collet
2018-11-13 11:01:59 -08:00
parent 626040ab53
commit d38063f8ae
11 changed files with 470 additions and 340 deletions
+2 -1
View File
@@ -24,7 +24,7 @@
#include <assert.h> /* assert */
#include "util.h"
#include "bench.h"
#include "benchfn.h"
#define ZSTD_STATIC_LINKING_ONLY
#include "zstd.h"
#include "zdict.h"
@@ -543,6 +543,7 @@ static int benchMem(slice_collection_t dstBlocks,
BMK_runOutcome_t const outcome = BMK_benchTimedFn(benchState,
decompress, &di,
NULL, NULL,
ZSTD_isError,
dstBlocks.nbSlices,
(const void* const *)srcBlocks.slicePtrs, srcBlocks.capacities,
dstBlocks.slicePtrs, dstBlocks.capacities,