From 78056a3e9ce691d86b0e30d7275978c899160673 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 30 May 2019 10:13:56 -0700 Subject: [PATCH] consistency : changed constant name to kSampleSizeDefault as suggested by @terrelln. added include --- tests/fullbench.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/fullbench.c b/tests/fullbench.c index fcae1f16..f750ee0d 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -15,6 +15,7 @@ #include "util.h" /* Compiler options, UTIL_GetFileSize */ #include /* malloc */ #include /* fprintf, fopen, ftello64 */ +#include #include "timefn.h" /* UTIL_clockSpanNano, UTIL_getTime */ #include "mem.h" /* U32 */ @@ -30,8 +31,8 @@ #include "zstd.h" /* ZSTD_versionString */ #include "util.h" /* time functions */ #include "datagen.h" -#include "benchfn.h" /* CustomBench*/ -#include "benchzstd.h" /* MB_UNIT */ +#include "benchfn.h" /* CustomBench */ +#include "benchzstd.h" /* MB_UNIT */ /*_************************************ @@ -50,7 +51,7 @@ #define DEFAULT_CLEVEL 1 #define COMPRESSIBILITY_DEFAULT 0.50 -static const size_t k_sampleSize_default = 10000000; +static const size_t kSampleSizeDefault = 10000000; #define TIMELOOP_NANOSEC (1*1000000000ULL) /* 1 second */ @@ -723,7 +724,7 @@ static int usage_advanced(const char* exename) DISPLAY( " -l# : benchmark functions at that compression level (default : %i)\n", DEFAULT_CLEVEL); DISPLAY( " --zstd : custom parameter selection. Format same as zstdcli \n"); DISPLAY( " -P# : sample compressibility (default : %.1f%%)\n", COMPRESSIBILITY_DEFAULT * 100); - DISPLAY( " -B# : sample size (default : %u)\n", (unsigned)k_sampleSize_default); + DISPLAY( " -B# : sample size (default : %u)\n", (unsigned)kSampleSizeDefault); DISPLAY( " -i# : iteration loops [1-9](default : %i)\n", NBLOOPS); return 0; } @@ -743,7 +744,7 @@ int main(int argc, const char** argv) U32 benchNb = 0, main_pause = 0; int cLevel = DEFAULT_CLEVEL; ZSTD_compressionParameters cparams = ZSTD_getCParams(cLevel, 0, 0); - size_t sampleSize = k_sampleSize_default; + size_t sampleSize = kSampleSizeDefault; double compressibility = COMPRESSIBILITY_DEFAULT; DISPLAY(WELCOME_MESSAGE);