fixed benchmark mode typo .
added benchmark mode tests
This commit is contained in:
+1
-1
@@ -369,7 +369,7 @@ int main(int argCount, const char* argv[])
|
|||||||
|
|
||||||
#ifndef ZSTD_NOBENCH
|
#ifndef ZSTD_NOBENCH
|
||||||
/* Benchmark */
|
/* Benchmark */
|
||||||
case 'b': operation=zom_train; argument++; break;
|
case 'b': operation=zom_bench; argument++; break;
|
||||||
|
|
||||||
/* range bench (benchmark only) */
|
/* range bench (benchmark only) */
|
||||||
case 'e':
|
case 'e':
|
||||||
|
|||||||
@@ -258,6 +258,17 @@ $ZSTD -t --rm tmp1.zst
|
|||||||
ls -ls tmp1.zst # check file is still present
|
ls -ls tmp1.zst # check file is still present
|
||||||
|
|
||||||
|
|
||||||
|
$ECHO "\n**** benchmark mode tests **** "
|
||||||
|
|
||||||
|
$ECHO "bench one file"
|
||||||
|
./datagen > tmp1
|
||||||
|
$ZSTD -bi1 tmp1
|
||||||
|
$ECHO "bench multiple levels"
|
||||||
|
$ZSTD -i1b1e3 tmp1
|
||||||
|
$ECHO "with recursive and quiet modes"
|
||||||
|
$ZSTD -rqi1b1e3 tmp1
|
||||||
|
|
||||||
|
|
||||||
$ECHO "\n**** zstd round-trip tests **** "
|
$ECHO "\n**** zstd round-trip tests **** "
|
||||||
|
|
||||||
roundTripTest
|
roundTripTest
|
||||||
|
|||||||
Reference in New Issue
Block a user