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)
 

Enumerations

enum  streaming_operation { not_streaming = 0 , is_streaming = 1 }
 

Functions

size_t ZSTD_decodeLiteralsBlock (ZSTD_DCtx *ctx, const void *src, size_t srcSize, void *dst, size_t dstCapacity, const streaming_operation streaming)
 
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. */

Enumeration Type Documentation

◆ streaming_operation

Enumerator
not_streaming 
is_streaming 

Function Documentation

◆ main()

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

◆ ZSTD_decodeLiteralsBlock()

size_t ZSTD_decodeLiteralsBlock ( ZSTD_DCtx * dctx,
const void * src,
size_t srcSize,
void * dst,
size_t dstCapacity,
const streaming_operation streaming )
extern

ZSTD_decodeLiteralsBlock() : Where it is possible to do so without being stomped by the output during decompression, the literals block will be stored in the dstBuffer. If there is room to do so, it will be stored in full in the excess dst space after where the current block will be output. Otherwise it will be stored at the end of the current dst blockspace, with a small portion being stored in dctx->litExtraBuffer to help keep it "ahead" of the current output write.

Returns
: nb of bytes read from src (< srcSize ) note : symbol not declared but exposed for fullbench

◆ ZSTD_decodeLiteralsHeader()

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