diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2022-07-29 18:56:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 18:56:22 (GMT) |
commit | 5c8bb8739eb5e503a02a1976d1ddcadb049a041d (patch) | |
tree | 0cfdde4daa06923e62f050802434f1e5f4b7fe98 /tests | |
parent | fb46a7fe8cd99bb9b8d9fc95d8fa6c238593a740 (diff) | |
parent | 4f4d09a0d1604da4a93d05716e586d73231c2e63 (diff) | |
download | lz4-5c8bb8739eb5e503a02a1976d1ddcadb049a041d.zip lz4-5c8bb8739eb5e503a02a1976d1ddcadb049a041d.tar.gz lz4-5c8bb8739eb5e503a02a1976d1ddcadb049a041d.tar.bz2 |
Merge pull request #1121 from lz4/decBench
Implement decoder-only benchmark
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 3 | ||||
-rw-r--r-- | tests/fullbench.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile index 469db9a..d804f25 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -476,6 +476,9 @@ test-lz4-testmode: FPREFIX = tmp-ltm test-lz4-testmode: lz4 datagen @echo "\n ---- bench mode ----" $(LZ4) -bi0 + $(DATAGEN) > $(FPREFIX) + $(LZ4) -f $(FPREFIX) -c > $(FPREFIX).lz4 + $(LZ4) -bdi0 $(FPREFIX).lz4 # test benchmark decode-only mode @echo "\n ---- test mode ----" ! $(DATAGEN) | $(LZ4) -t ! $(DATAGEN) | $(LZ4) -tf diff --git a/tests/fullbench.c b/tests/fullbench.c index ec20dcb..9c13996 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -397,7 +397,8 @@ static int local_LZ4F_decompress_followHint(const char* src, char* dst, int srcS size_t outRemaining = maxOutSize - outPos; for (;;) { - size_t const sizeHint = LZ4F_decompress(g_dCtx, dst+outPos, &outRemaining, src+inPos, &inSize, NULL); + size_t const sizeHint = + LZ4F_decompress(g_dCtx, dst+outPos, &outRemaining, src+inPos, &inSize, NULL); assert(!LZ4F_isError(sizeHint)); inPos += inSize; |