Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion programs/benchzstd.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ static BMK_benchOutcome_t BMK_benchMemAdvancedNoAlloc(
: chunkSize;
srcPtr += chunkSize;
cPtr += cCapacities[chunkID];
resPtr += chunkSize;
resPtr += resSizes[chunkID];
remaining -= chunkSize;
if (adv->mode == BMK_decodeOnly) {
cSizes[chunkID] = chunkSize;
Expand Down
5 changes: 5 additions & 0 deletions tests/playTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,11 @@ zstd -f tmp1
zstd -b -d -i0 tmp1.zst
println "benchmark can fail - decompression on invalid data"
zstd -b -d -i0 tmp1 && die "invalid .zst data => benchmark should have failed"
println "benchmark decompression of several frames whose content is smaller than the frame"
printf 'a' > tmpbd1 ; printf 'b' > tmpbd2 ; printf 'c' > tmpbd3
zstd -qf tmpbd1 tmpbd2 tmpbd3
zstd -b -d -i0 tmpbd1.zst tmpbd2.zst tmpbd3.zst
rm -f tmpbd1 tmpbd2 tmpbd3 tmpbd1.zst tmpbd2.zst tmpbd3.zst

GZIPMODE=1
zstd --format=gzip -V || GZIPMODE=0
Expand Down