BPHash
General object hashing library for C++
Macros | Functions
test_reference.cpp File Reference

Testing of core hashing algorithms. More...

#include <iostream>
#include <random>
#include <chrono>
#include <sstream>
#include "bphash/Hasher.hpp"
#include "bphash/MurmurHash3_32_x32.hpp"
#include "bphash/MurmurHash3_32_x64.hpp"
#include "bphash/MurmurHash3_64_x64.hpp"
#include "bphash/MurmurHash3_128_x64.hpp"
#include "MurmurHash3_reference.h"
Include dependency graph for test_reference.cpp:

Go to the source code of this file.

Macros

#define TEST_SIZE   1024*1024 + 7
 

Functions

static void random_fill (std::vector< uint8_t > &buffer)
 
static void test_offset (detail::HashImpl &hasher, const std::vector< uint8_t > &testdata, size_t offset, size_t blocksize, const HashValue &reference, int hashsize, int bitness)
 
int main (void)
 

Detailed Description

Testing of core hashing algorithms.

Definition in file test_reference.cpp.

Macro Definition Documentation

#define TEST_SIZE   1024*1024 + 7

Definition at line 27 of file test_reference.cpp.

Function Documentation

int main ( void  )

Definition at line 94 of file test_reference.cpp.

Here is the call graph for this function:

static void random_fill ( std::vector< uint8_t > &  buffer)
static

Definition at line 32 of file test_reference.cpp.

Here is the caller graph for this function:

static void test_offset ( detail::HashImpl hasher,
const std::vector< uint8_t > &  testdata,
size_t  offset,
size_t  blocksize,
const HashValue reference,
int  hashsize,
int  bitness 
)
static

Definition at line 43 of file test_reference.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: