#include "util.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <ctype.h>
#include <errno.h>
#include "timefn.h"
#include "mem.h"
#include "zstd.h"
#include "datagen.h"
#include "xxhash.h"
#include "zstd_zlibwrapper.h"
|
#define | ZSTD_STATIC_LINKING_ONLY |
|
#define | ZSTDCLI_CLEVEL_DEFAULT 3 |
|
#define | COMPRESSOR_NAME "Zstandard wrapper for zlib command line interface" |
|
#define | ZSTD_VERSION "v" ZSTD_VERSION_STRING |
|
#define | AUTHOR "Yann Collet" |
|
#define | WELCOME_MESSAGE "*** %s %i-bits %s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(size_t)*8), ZSTD_VERSION, AUTHOR |
|
#define | ZSTD_GIT_COMMIT_STRING "" |
|
#define | NBLOOPS 3 |
|
#define | TIMELOOP_MICROSEC 1*1000000ULL /* 1 second */ |
|
#define | ACTIVEPERIOD_MICROSEC 70*1000000ULL /* 70 seconds */ |
|
#define | COOLPERIOD_SEC 10 |
|
#define | KB *(1 <<10) |
|
#define | MB *(1 <<20) |
|
#define | GB *(1U<<30) |
|
#define | DEFAULT_DISPLAY_LEVEL 2 |
|
#define | DISPLAY(...) |
|
#define | DISPLAYLEVEL(l, ...) |
|
#define | DISPLAYUPDATE(l, ...) |
|
#define | DEBUG 0 |
|
#define | DEBUGOUTPUT(...) |
|
#define | EXM_THROW(error, ...) |
|
#define | MIN(a, b) |
|
#define | MAX(a, b) |
|
#define | NB_MARKS 4 |
|
#define | CLEAN_RETURN(i) |
|
◆ ACTIVEPERIOD_MICROSEC
#define ACTIVEPERIOD_MICROSEC 70*1000000ULL /* 70 seconds */ |
◆ AUTHOR
#define AUTHOR "Yann Collet" |
◆ CLEAN_RETURN
#define CLEAN_RETURN |
( |
| i | ) |
|
Value:{ operationResult = (
i);
goto _end; }
lzma_index ** i
Definition index.h:629
◆ COMPRESSOR_NAME
#define COMPRESSOR_NAME "Zstandard wrapper for zlib command line interface" |
◆ COOLPERIOD_SEC
#define COOLPERIOD_SEC 10 |
◆ DEBUG
◆ DEBUGOUTPUT
#define DEBUGOUTPUT |
( |
| ... | ) |
|
Value:
#define DISPLAY(...)
Definition zwrapbench.c:75
#define DEBUG
Definition zwrapbench.c:92
◆ DEFAULT_DISPLAY_LEVEL
#define DEFAULT_DISPLAY_LEVEL 2 |
◆ DISPLAY
Value:fprintf(displayOut, __VA_ARGS__)
◆ DISPLAYLEVEL
#define DISPLAYLEVEL |
( |
| l, |
|
|
| ... ) |
Value:if (g_displayLevel>=l) {
DISPLAY(__VA_ARGS__); }
◆ DISPLAYUPDATE
#define DISPLAYUPDATE |
( |
| l, |
|
|
| ... ) |
Value: if (g_displayLevel>=l) { \
if ((clock() - g_time > refreshRate) || (g_displayLevel>=4)) \
{ g_time = clock();
DISPLAY(__VA_ARGS__); \
if (g_displayLevel>=4) fflush(displayOut); } }
◆ EXM_THROW
#define EXM_THROW |
( |
| error, |
|
|
| ... ) |
Value:{ \
DEBUGOUTPUT("Error defined at %s, line %i : \n", __FILE__, __LINE__); \
DISPLAYLEVEL(1,
"Error %i : ",
error); \
DISPLAYLEVEL(1, __VA_ARGS__); \
DISPLAYLEVEL(1, "\n"); \
}
void error(char *msg) const
Definition minigzip.c:356
◆ GB
◆ KB
◆ MAX
Value:
#define b(i)
Definition sha256.c:42
#define a(i)
Definition sha256.c:41
◆ MB
◆ MIN
◆ NB_MARKS
◆ NBLOOPS
◆ TIMELOOP_MICROSEC
#define TIMELOOP_MICROSEC 1*1000000ULL /* 1 second */ |
◆ WELCOME_MESSAGE
◆ ZSTD_GIT_COMMIT_STRING
#define ZSTD_GIT_COMMIT_STRING "" |
◆ ZSTD_STATIC_LINKING_ONLY
#define ZSTD_STATIC_LINKING_ONLY |
◆ ZSTD_VERSION
◆ ZSTDCLI_CLEVEL_DEFAULT
#define ZSTDCLI_CLEVEL_DEFAULT 3 |
◆ BMK_compressor
Enumerator |
---|
BMK_ZSTD | |
BMK_ZSTD_STREAM | |
BMK_ZLIB | |
BMK_ZWRAP_ZLIB | |
BMK_ZWRAP_ZSTD | |
BMK_ZLIB_REUSE | |
BMK_ZWRAP_ZLIB_REUSE | |
BMK_ZWRAP_ZSTD_REUSE | |
◆ BMK_benchFiles()
int BMK_benchFiles |
( |
const char ** | fileNamesTable, |
|
|
unsigned | nbFiles, |
|
|
const char * | dictFileName, |
|
|
int | cLevel, |
|
|
int | cLevelLast ) |
◆ BMK_setAdditionalParam()
void BMK_setAdditionalParam |
( |
int | additionalParam | ) |
|
◆ BMK_SetBlockSize()
void BMK_SetBlockSize |
( |
size_t | blockSize | ) |
|
◆ BMK_SetNbIterations()
void BMK_SetNbIterations |
( |
unsigned | nbLoops | ) |
|
◆ BMK_setNotificationLevel()
void BMK_setNotificationLevel |
( |
unsigned | level | ) |
|
◆ main()
int main |
( |
int | argCount, |
|
|
char ** | argv ) |
◆ g_additionalParam
int g_additionalParam = 0 |