Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
bench_functions.c File Reference
#include "lz4.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>
#include <time.h>
#include <locale.h>
#include <limits.h>
#include <assert.h>

Macros

#define _XOPEN_SOURCE   500
 
#define _POSIX_C_SOURCE   199309L
 
#define LZ4_DISABLE_DEPRECATE_WARNINGS   /* LZ4_decompress_fast */
 
#define BILLION   1000000000L
 
#define ID__LZ4_COMPRESS_DEFAULT   1
 
#define ID__LZ4_COMPRESS_FAST   2
 
#define ID__LZ4_COMPRESS_FAST_EXTSTATE   3
 
#define ID__LZ4_COMPRESS_GENERIC   4
 
#define ID__LZ4_DECOMPRESS_SAFE   5
 
#define ID__LZ4_DECOMPRESS_FAST   6
 
#define CHECK(c)
 

Functions

void run_screaming (const char *message, const int code)
 
void usage (const char *exeName, const char *message)
 
uint64_t bench (const char *known_good_dst, const int function_id, int iterations, const char *src, char *dst, const size_t src_size, const size_t max_dst_size, const size_t comp_size)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   199309L

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   500

◆ BILLION

#define BILLION   1000000000L

◆ CHECK

#define CHECK ( c)
Value:
{ if (!(c)) { run_screaming(#c, 1); } }
void run_screaming(const char *message, const int code)
Definition bench_functions.c:90
#define c(i)
Definition sha256.c:43

◆ ID__LZ4_COMPRESS_DEFAULT

#define ID__LZ4_COMPRESS_DEFAULT   1

◆ ID__LZ4_COMPRESS_FAST

#define ID__LZ4_COMPRESS_FAST   2

◆ ID__LZ4_COMPRESS_FAST_EXTSTATE

#define ID__LZ4_COMPRESS_FAST_EXTSTATE   3

◆ ID__LZ4_COMPRESS_GENERIC

#define ID__LZ4_COMPRESS_GENERIC   4

◆ ID__LZ4_DECOMPRESS_FAST

#define ID__LZ4_DECOMPRESS_FAST   6

◆ ID__LZ4_DECOMPRESS_SAFE

#define ID__LZ4_DECOMPRESS_SAFE   5

◆ LZ4_DISABLE_DEPRECATE_WARNINGS

#define LZ4_DISABLE_DEPRECATE_WARNINGS   /* LZ4_decompress_fast */

Function Documentation

◆ bench()

uint64_t bench ( const char * known_good_dst,
const int function_id,
int iterations,
const char * src,
char * dst,
const size_t src_size,
const size_t max_dst_size,
const size_t comp_size )

◆ main()

int main ( int argc,
char ** argv )

◆ run_screaming()

void run_screaming ( const char * message,
const int code )

◆ usage()

void usage ( const char * exeName,
const char * message )