Searched refs:benchFn (Results 1 - 3 of 3) sorted by relevance
/freebsd-13-stable/sys/contrib/zstd/programs/ |
H A D | benchfn.h | 68 BMK_benchFn_t benchFn; /* the function to benchmark, over the set of blocks */ member in struct:__anon11155 69 void* benchPayload; /* pass custom parameters to benchFn : 70 * (*benchFn)(srcBuffers[i], srcSizes[i], dstBuffers[i], dstCapacities[i], benchPayload) */ 73 BMK_errorFn_t errorFn; /* errorFn will check each return value of benchFn over each block, to determine if it failed or not. 75 * errorFn must return 0 when benchFn was successful, and >= 1 if it detects an error. 78 size_t blockCount; /* number of blocks to operate benchFn on. 81 const void *const * srcBuffers; /* read-only array of buffers to be operated on by benchFn */ 83 void *const * dstBuffers; /* array of buffers to be written into by benchFn. This array is not optional, it must be provided even if unused by benchfn. */ 85 size_t* blockResults; /* Optional: store the return value of benchFn for each block. Use NULL if this result is not requested. */ 90 * This function benchmarks benchFn an [all...] |
H A D | benchfn.c | 101 /* initFn will be measured once, benchFn will be measured `nbLoops` times */ 103 /* benchFn must return a size_t value that errorFn can interpret */ 105 /* can report result of benchFn for each block into blockResult. */ 126 size_t const res = p.benchFn(p.srcBuffers[blockNb], p.srcSizes[blockNb],
|
H A D | benchzstd.c | 403 cbp.benchFn = local_defaultCompress; /* ZSTD_compress2 */ 422 dbp.benchFn = local_defaultDecompress;
|
Completed in 75 milliseconds