add tests for compression bounds, fix another warning
parent
ff54fced64
commit
0f4cb67b00
|
@ -621,10 +621,11 @@ static void* compressionThread(void* arg)
|
|||
|
||||
static void displayProgress(unsigned cLevel, unsigned last)
|
||||
{
|
||||
|
||||
UTIL_time_t currTime;
|
||||
UTIL_getTime(&currTime);
|
||||
if (!g_useProgressBar) return;
|
||||
{
|
||||
UTIL_time_t currTime;
|
||||
UTIL_getTime(&currTime);
|
||||
double const timeElapsed = (double)(UTIL_getSpanTimeMicro(g_ticksPerSecond, g_startTime, currTime) / 1000.0);
|
||||
double const sizeMB = (double)g_streamedSize / (1 << 20);
|
||||
double const avgCompRate = sizeMB * 1000 / timeElapsed;
|
||||
|
|
|
@ -242,4 +242,11 @@ echo -e "\ncorrectness tests -- window size test"
|
|||
./datagen -s39 -g1GB | pv -L 25m -q | ./adapt -i1 | pv -q > tmp.zst
|
||||
zstd -d tmp.zst
|
||||
rm tmp*
|
||||
|
||||
echo -e "\ncorrectness tests -- testing bounds"
|
||||
./datagen -s40 -g1GB | pv -L 25m -q | ./adapt -i1 -u4 | pv -q > tmp.zst
|
||||
rm tmp*
|
||||
|
||||
./datagen -s41 -g1GB | ./adapt -i14 -l4 > tmp.zst
|
||||
rm tmp*
|
||||
make clean
|
||||
|
|
Loading…
Reference in New Issue