proxygen
|
#include <folly/hash/SpookyHashV2.h>
#include <cinttypes>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <glog/logging.h>
#include <folly/portability/GTest.h>
#include <folly/portability/Time.h>
Go to the source code of this file.
Classes | |
class | Random |
Macros | |
#define | __STDC_FORMAT_MACROS 1 |
#define | BUFSIZE (512) |
#define | NUMBUF (1<<10) |
#define | BUFSIZE (1<<20) |
#define | BUFSIZE (1<<14) |
#define | NUMITER 10000000 |
#define | BUFSIZE 1024 |
#define | BUFSIZE 256 |
#define | TRIES 50 |
#define | MEASURES 6 |
#define | BUFSIZE 1024 |
Functions | |
static uint64_t | GetClockTickCount () |
static void | Add (const void *data, size_t length, uint64_t *hash1, uint64_t *hash2) |
void | TestResults () |
void | DoTimingBig (int seed) |
void | DoTimingSmall (int seed) |
void | TestAlignment () |
void | TestDeltas (int seed) |
void | TestPieces () |
TEST (SpookyHashV2, Main) | |
Variables | |
static bool | failed = false |
#define __STDC_FORMAT_MACROS 1 |
Definition at line 20 of file SpookyHashV2Test.cpp.
#define BUFSIZE (512) |
Definition at line 472 of file SpookyHashV2Test.cpp.
Referenced by DoTimingBig(), DoTimingSmall(), TestAlignment(), TestDeltas(), TestPieces(), and TestResults().
#define BUFSIZE (1<<20) |
Definition at line 472 of file SpookyHashV2Test.cpp.
#define BUFSIZE (1<<14) |
Definition at line 472 of file SpookyHashV2Test.cpp.
#define BUFSIZE 1024 |
Definition at line 472 of file SpookyHashV2Test.cpp.
#define BUFSIZE 256 |
Definition at line 472 of file SpookyHashV2Test.cpp.
#define BUFSIZE 1024 |
Definition at line 472 of file SpookyHashV2Test.cpp.
#define MEASURES 6 |
Definition at line 381 of file SpookyHashV2Test.cpp.
Referenced by TestDeltas().
#define NUMBUF (1<<10) |
Definition at line 257 of file SpookyHashV2Test.cpp.
Referenced by DoTimingBig().
#define NUMITER 10000000 |
Definition at line 319 of file SpookyHashV2Test.cpp.
Referenced by DoTimingSmall().
#define TRIES 50 |
Definition at line 380 of file SpookyHashV2Test.cpp.
Referenced by TestDeltas().
Definition at line 83 of file SpookyHashV2Test.cpp.
References folly::test::end(), and uint64_t.
Referenced by DoTimingBig().
void DoTimingBig | ( | int | seed | ) |
Definition at line 259 of file SpookyHashV2Test.cpp.
References a, Add(), BUFSIZE, bm::free(), GetClockTickCount(), i, NUMBUF, seed, and uint64_t.
Referenced by TEST().
void DoTimingSmall | ( | int | seed | ) |
Definition at line 320 of file SpookyHashV2Test.cpp.
References a, BUFSIZE, GetClockTickCount(), i, NUMITER, seed, and uint64_t.
Referenced by TEST().
|
static |
Definition at line 42 of file SpookyHashV2Test.cpp.
References folly::chrono::clock_gettime.
Referenced by DoTimingBig(), and DoTimingSmall().
TEST | ( | SpookyHashV2 | , |
Main | |||
) |
Definition at line 535 of file SpookyHashV2Test.cpp.
References DoTimingBig(), DoTimingSmall(), failed, TestAlignment(), TestDeltas(), TestPieces(), and TestResults().
void TestAlignment | ( | ) |
void TestDeltas | ( | int | seed | ) |
Definition at line 382 of file SpookyHashV2Test.cpp.
References BUFSIZE, counter, failed, h, i, Random::Init(), k, m, measure(), MEASURES, random(), TRIES, uint64_t, uint8_t, and Random::Value().
Referenced by TEST().
void TestPieces | ( | ) |
void TestResults | ( | ) |
|
static |
Definition at line 40 of file SpookyHashV2Test.cpp.
Referenced by TEST(), TestAlignment(), TestDeltas(), TestPieces(), and TestResults().