Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
zwrapbench.c File Reference
#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"

Data Structures

struct  blockParam_t
 

Macros

#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)
 

Enumerations

enum  BMK_compressor {
  BMK_ZSTD , BMK_ZSTD_STREAM , BMK_ZLIB , BMK_ZWRAP_ZLIB ,
  BMK_ZWRAP_ZSTD , BMK_ZLIB_REUSE , BMK_ZWRAP_ZLIB_REUSE , BMK_ZWRAP_ZSTD_REUSE
}
 

Functions

int main (int argCount, char **argv)
 

Variables

int g_additionalParam = 0
 

Macro Definition Documentation

◆ 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

#define DEBUG   0

◆ DEBUGOUTPUT

#define DEBUGOUTPUT ( ...)
Value:
{ if (DEBUG) DISPLAY(__VA_ARGS__); }
#define DISPLAY(...)
Definition zwrapbench.c:75
#define DEBUG
Definition zwrapbench.c:92

◆ DEFAULT_DISPLAY_LEVEL

#define DEFAULT_DISPLAY_LEVEL   2

◆ DISPLAY

#define 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"); \
exit(error); \
}
void error(char *msg) const
Definition minigzip.c:356

◆ GB

#define GB   *(1U<<30)

◆ KB

#define KB   *(1 <<10)

◆ MAX

#define MAX ( a,
b )
Value:
((a)>(b) ? (a) : (b))
#define b(i)
Definition sha256.c:42
#define a(i)
Definition sha256.c:41

◆ MB

#define MB   *(1 <<20)

◆ MIN

#define MIN ( a,
b )
Value:
((a)<(b) ? (a) : (b))

◆ NB_MARKS

#define NB_MARKS   4

◆ NBLOOPS

#define NBLOOPS   3

◆ TIMELOOP_MICROSEC

#define TIMELOOP_MICROSEC   1*1000000ULL /* 1 second */

◆ WELCOME_MESSAGE

#define WELCOME_MESSAGE   "*** %s %i-bits %s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(size_t)*8), ZSTD_VERSION, AUTHOR

◆ ZSTD_GIT_COMMIT_STRING

#define ZSTD_GIT_COMMIT_STRING   ""

◆ ZSTD_STATIC_LINKING_ONLY

#define ZSTD_STATIC_LINKING_ONLY

◆ ZSTD_VERSION

#define ZSTD_VERSION   "v" ZSTD_VERSION_STRING

◆ ZSTDCLI_CLEVEL_DEFAULT

#define ZSTDCLI_CLEVEL_DEFAULT   3

Enumeration Type Documentation

◆ 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 

Function Documentation

◆ main()

int main ( int argCount,
char ** argv )

Variable Documentation

◆ g_additionalParam

int g_additionalParam = 0