#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <assert.h>
#include "util.h"
#include "benchfn.h"
#include "zstd.h"
#include "zdict.h"
|
void | shrinkSizes (slice_collection_t collection, const size_t *newSizes) |
|
void | shuffleCDictionaries (cdict_collection_t dicts) |
|
void | shuffleDDictionaries (ddict_collection_t dicts) |
|
compressInstructions | createCompressInstructions (cdict_collection_t dictionaries) |
|
void | freeCompressInstructions (compressInstructions ci) |
|
decompressInstructions | createDecompressInstructions (ddict_collection_t dictionaries) |
|
void | freeDecompressInstructions (decompressInstructions di) |
|
size_t | compress (const void *src, size_t srcSize, void *dst, size_t dstCapacity, void *payload) |
|
size_t | decompress (const void *src, size_t srcSize, void *dst, size_t dstCapacity, void *payload) |
|
int | bench (const char **fileNameTable, unsigned nbFiles, const char *dictionary, size_t blockSize, int clevel, unsigned nbDictMax, unsigned nbBlocks, unsigned nbRounds, int benchCompression, int dedicatedDictSearch) |
|
int | usage (const char *exeName) |
|
int | bad_usage (const char *exeName) |
|
int | main (int argc, const char **argv) |
|
◆ BENCH_SIZE_MAX
#define BENCH_SIZE_MAX (1200 MB) |
◆ BENCH_TIME_DEFAULT_MS
◆ BENCH_TIME_DEFAULT_S
#define BENCH_TIME_DEFAULT_S 6 |
◆ BLOCKSIZE_DEFAULT
#define BLOCKSIZE_DEFAULT 0 /* no slicing into blocks */ |
◆ CLEVEL_DEFAULT
◆ CONTROL
Value:
#define c(i)
Definition sha256.c:43
◆ DICTSIZE
◆ DISPLAY
Value:fprintf(stdout, __VA_ARGS__)
◆ DISPLAY_LEVEL_DEFAULT
#define DISPLAY_LEVEL_DEFAULT 3 |
◆ DISPLAYLEVEL
#define DISPLAYLEVEL |
( |
| l, |
|
|
| ... ) |
Value:{
if (g_displayLevel>=l) {
DISPLAY(__VA_ARGS__); } }
#define DISPLAY(...)
Definition largeNbDicts.c:61
◆ KB
◆ MB
◆ MIN
Value:
#define b(i)
Definition sha256.c:42
#define a(i)
Definition sha256.c:41
◆ RUN_TIME_DEFAULT_MS
#define RUN_TIME_DEFAULT_MS 1000 |
◆ ZSTD_STATIC_LINKING_ONLY
#define ZSTD_STATIC_LINKING_ONLY |
◆ bad_usage()
◆ bench()
int bench |
( |
const char ** | fileNameTable, |
|
|
unsigned | nbFiles, |
|
|
const char * | dictionary, |
|
|
size_t | blockSize, |
|
|
int | clevel, |
|
|
unsigned | nbDictMax, |
|
|
unsigned | nbBlocks, |
|
|
unsigned | nbRounds, |
|
|
int | benchCompression, |
|
|
int | dedicatedDictSearch ) |
bench() : fileName : file to load for benchmarking purpose dictionary : optional (can be NULL), file to load as dictionary, if none provided : will be calculated on the fly by the program.
- Returns
- : 0 is success, 1+ otherwise
◆ compress()
size_t compress |
( |
const void * | src, |
|
|
size_t | srcSize, |
|
|
void * | dst, |
|
|
size_t | dstCapacity, |
|
|
void * | payload ) |
◆ createCompressInstructions()
◆ createDecompressInstructions()
◆ decompress()
size_t decompress |
( |
const void * | src, |
|
|
size_t | srcSize, |
|
|
void * | dst, |
|
|
size_t | dstCapacity, |
|
|
void * | payload ) |
◆ freeCompressInstructions()
◆ freeDecompressInstructions()
◆ main()
◆ shrinkSizes()
◆ shuffleCDictionaries()
◆ shuffleDDictionaries()
◆ usage()