Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
fullbench.c File Reference
#include "platform.h"
#include "util.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <time.h>
#include "lz4.h"
#include "lz4hc.h"
#include "lz4frame.h"
#include "xxhash.h"

Data Structures

struct  chunkParameters
 
struct  CompressionDesc
 
struct  DecompressionDesc
 

Macros

#define LZ4_DISABLE_DEPRECATE_WARNINGS   /* LZ4_decompress_fast */
 
#define PROGRAM_DESCRIPTION   "LZ4 speed analyzer"
 
#define AUTHOR   "Yann Collet"
 
#define WELCOME_MESSAGE   "*** %s v%s %i-bits, by %s ***\n", PROGRAM_DESCRIPTION, LZ4_VERSION_STRING, (int)(sizeof(void*)*8), AUTHOR
 
#define NBLOOPS   6
 
#define TIMELOOP   (CLOCKS_PER_SEC * 19 / 10)
 
#define KB   *(1 <<10)
 
#define MB   *(1 <<20)
 
#define GB   *(1U<<30)
 
#define KNUTH   2654435761U
 
#define MAX_MEM   (1920 MB)
 
#define DEFAULT_CHUNKSIZE   (4 MB)
 
#define ALL_COMPRESSORS   0
 
#define ALL_DECOMPRESSORS   0
 
#define DISPLAY(...)
 
#define PROGRESS(...)
 
#define ARRAY_SIZE(a)
 
#define NB_COMPRESSION_ALGORITHMS   ARRAY_SIZE(compDescArray)
 
#define NB_DECOMPRESSION_ALGORITHMS   ARRAY_SIZE(decDescArray)
 

Functions

void * LZ4_malloc (size_t s)
 
void * LZ4_calloc (size_t n, size_t s)
 
void LZ4_free (void *p)
 
int LZ4_compress_forceExtDict (LZ4_stream_t *LZ4_stream, const char *source, char *dest, int inputSize)
 
int LZ4_decompress_safe_forceExtDict (const char *in, char *out, int inSize, int outSize, const void *dict, size_t dictSize)
 
int LZ4_decompress_safe_partial_forceExtDict (const char *in, char *out, int inSize, int targetOutputSize, int dstCapacity, const void *dict, size_t dictSize)
 
int fullSpeedBench (const char **fileNamesTable, int nbFiles)
 
int main (int argc, const char **argv)
 

Variables

LZ4_streamHC_t LZ4_streamHC
 
LZ4F_cctxg_cctx = NULL
 

Macro Definition Documentation

◆ ALL_COMPRESSORS

#define ALL_COMPRESSORS   0

◆ ALL_DECOMPRESSORS

#define ALL_DECOMPRESSORS   0

◆ ARRAY_SIZE

#define ARRAY_SIZE ( a)
Value:
(sizeof(a) / (sizeof((a)[0])))
#define a(i)
Definition sha256.c:41

◆ AUTHOR

#define AUTHOR   "Yann Collet"

◆ DEFAULT_CHUNKSIZE

#define DEFAULT_CHUNKSIZE   (4 MB)

◆ DISPLAY

#define DISPLAY ( ...)
Value:
fprintf(stderr, __VA_ARGS__)

◆ GB

#define GB   *(1U<<30)

◆ KB

#define KB   *(1 <<10)

◆ KNUTH

#define KNUTH   2654435761U

◆ LZ4_DISABLE_DEPRECATE_WARNINGS

#define LZ4_DISABLE_DEPRECATE_WARNINGS   /* LZ4_decompress_fast */

◆ MAX_MEM

#define MAX_MEM   (1920 MB)

◆ MB

#define MB   *(1 <<20)

◆ NB_COMPRESSION_ALGORITHMS

#define NB_COMPRESSION_ALGORITHMS   ARRAY_SIZE(compDescArray)

◆ NB_DECOMPRESSION_ALGORITHMS

#define NB_DECOMPRESSION_ALGORITHMS   ARRAY_SIZE(decDescArray)

◆ NBLOOPS

#define NBLOOPS   6

◆ PROGRAM_DESCRIPTION

#define PROGRAM_DESCRIPTION   "LZ4 speed analyzer"

◆ PROGRESS

#define PROGRESS ( ...)
Value:
g_noPrompt ? 0 : DISPLAY(__VA_ARGS__)
#define DISPLAY(...)
Definition fullbench.c:91

◆ TIMELOOP

#define TIMELOOP   (CLOCKS_PER_SEC * 19 / 10)

◆ WELCOME_MESSAGE

#define WELCOME_MESSAGE   "*** %s v%s %i-bits, by %s ***\n", PROGRAM_DESCRIPTION, LZ4_VERSION_STRING, (int)(sizeof(void*)*8), AUTHOR

Function Documentation

◆ fullSpeedBench()

int fullSpeedBench ( const char ** fileNamesTable,
int nbFiles )

◆ LZ4_calloc()

void * LZ4_calloc ( size_t n,
size_t s )

◆ LZ4_compress_forceExtDict()

int LZ4_compress_forceExtDict ( LZ4_stream_t * LZ4_stream,
const char * source,
char * dest,
int inputSize )
extern

◆ LZ4_decompress_safe_forceExtDict()

int LZ4_decompress_safe_forceExtDict ( const char * in,
char * out,
int inSize,
int outSize,
const void * dict,
size_t dictSize )
extern

◆ LZ4_decompress_safe_partial_forceExtDict()

int LZ4_decompress_safe_partial_forceExtDict ( const char * in,
char * out,
int inSize,
int targetOutputSize,
int dstCapacity,
const void * dict,
size_t dictSize )
extern

◆ LZ4_free()

void LZ4_free ( void * p)

◆ LZ4_malloc()

void * LZ4_malloc ( size_t s)

◆ main()

int main ( int argc,
const char ** argv )

Variable Documentation

◆ g_cctx

LZ4F_cctx* g_cctx = NULL

◆ LZ4_streamHC

LZ4_streamHC_t LZ4_streamHC