Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
fullbench.c File Reference
#include "util.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "timefn.h"
#include "mem.h"
#include "zstd_internal.h"
#include "decompress/zstd_decompress_internal.h"
#include "zstd.h"
#include "datagen.h"
#include "benchfn.h"
#include "benchzstd.h"

Macros

#define ZSTD_DISABLE_DEPRECATE_WARNINGS   /* No deprecation warnings, we still bench some deprecated functions */
 
#define ZSTD_STATIC_LINKING_ONLY   /* ZSTD_compressBegin, ZSTD_compressContinue, etc. */
 
#define PROGRAM_DESCRIPTION   "Zstandard speed analyzer"
 
#define AUTHOR   "Yann Collet"
 
#define WELCOME_MESSAGE   "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, ZSTD_versionString(), (int)(sizeof(void*)*8), AUTHOR, __DATE__
 
#define NBLOOPS   6
 
#define TIMELOOP_S   2
 
#define MAX_MEM   (1984 MB)
 
#define DEFAULT_CLEVEL   1
 
#define COMPRESSIBILITY_DEFAULT   0.50
 
#define TIMELOOP_NANOSEC   (1*1000000000ULL) /* 1 second */
 
#define DISPLAY(...)
 
#define CONTROL(c)
 
#define FIRST_BLOCK_SIZE   8
 
#define ERROR_OUT(msg)
 

Functions

size_t ZSTD_decodeLiteralsBlock_wrapper (ZSTD_DCtx *dctx, const void *src, size_t srcSize, void *dst, size_t dstCapacity)
 
FORCE_NOINLINE size_t ZSTD_decodeLiteralsHeader (ZSTD_DCtx *dctx, void const *src, size_t srcSize)
 
int main (int argc, const char **argv)
 

Macro Definition Documentation

◆ AUTHOR

#define AUTHOR   "Yann Collet"

◆ COMPRESSIBILITY_DEFAULT

#define COMPRESSIBILITY_DEFAULT   0.50

◆ CONTROL

#define CONTROL ( c)
Value:
{ if (!(c)) { abort(); } } /* like assert(), but cannot be disabled */
#define c(i)
Definition sha256.c:43

◆ DEFAULT_CLEVEL

#define DEFAULT_CLEVEL   1

◆ DISPLAY

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

◆ ERROR_OUT

#define ERROR_OUT ( msg)
Value:
{ DISPLAY("%s \n", msg); exit(1); }
#define DISPLAY(...)
Definition fullbench.c:91

◆ FIRST_BLOCK_SIZE

#define FIRST_BLOCK_SIZE   8

◆ MAX_MEM

#define MAX_MEM   (1984 MB)

◆ NBLOOPS

#define NBLOOPS   6

◆ PROGRAM_DESCRIPTION

#define PROGRAM_DESCRIPTION   "Zstandard speed analyzer"

◆ TIMELOOP_NANOSEC

#define TIMELOOP_NANOSEC   (1*1000000000ULL) /* 1 second */

◆ TIMELOOP_S

#define TIMELOOP_S   2

◆ WELCOME_MESSAGE

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

◆ ZSTD_DISABLE_DEPRECATE_WARNINGS

#define ZSTD_DISABLE_DEPRECATE_WARNINGS   /* No deprecation warnings, we still bench some deprecated functions */

◆ ZSTD_STATIC_LINKING_ONLY

#define ZSTD_STATIC_LINKING_ONLY   /* ZSTD_compressBegin, ZSTD_compressContinue, etc. */

Function Documentation

◆ main()

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

◆ ZSTD_decodeLiteralsBlock_wrapper()

size_t ZSTD_decodeLiteralsBlock_wrapper ( ZSTD_DCtx * dctx,
const void * src,
size_t srcSize,
void * dst,
size_t dstCapacity )
extern

◆ ZSTD_decodeLiteralsHeader()

FORCE_NOINLINE size_t ZSTD_decodeLiteralsHeader ( ZSTD_DCtx * dctx,
void const * src,
size_t srcSize )