Blender V5.3
BLI_map_performance_test.cc File Reference
#include "BLI_resource_strings.h"
#include "testing/testing.h"
#include "MEM_guardedalloc.h"
#include "BLI_fileops.hh"
#include "BLI_ghash.hh"
#include "BLI_map.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_rand_c.hh"
#include "BLI_string.hh"
#include "BLI_timeit.hh"
#include "BLI_utildefines.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define GHASH_INTERNAL_API

Functions

static void blender::print_ghash_stats (GHash *gh)
static char * blender::read_text_corpus ()
static void blender::str_ghash_tests (GHash *ghash, const char *id)
template<typename MapType>
static void blender::str_map_tests (MapType &map, const char *id)
 blender::TEST (ghash, TextGHash)
 blender::TEST (ghash, TextMurmur2a)
 blender::TEST (ghash, TextMap)
static void blender::int_ghash_tests (GHash *ghash, const char *id, const uint count)
template<typename MapType>
static void blender::int_map_tests (MapType &map, const char *id, const uint count)
 blender::TEST (ghash, IntGHash12000)
 blender::TEST (ghash, IntMurmur2a12000)
 blender::TEST (ghash, IntMap12000)
static void blender::randint_ghash_tests (GHash *ghash, const char *id, const uint count)
template<typename MapType>
static void blender::randint_map_tests (MapType &map, const char *id, const uint count)
 blender::TEST (ghash, IntRandGHash12000)
 blender::TEST (ghash, IntRandMurmur2a12000)
 blender::TEST (ghash, IntRandMap12000)
static uint blender::ghashutil_tests_nohash_p (const void *p)
static bool blender::ghashutil_tests_cmp_p (const void *a, const void *b)
 blender::TEST (ghash, IntRandNoHash12000)
static void blender::int4_ghash_tests (GHash *ghash, const char *id, const uint count)
template<typename MapType>
static void blender::int4_map_tests (MapType &map, const char *id, const uint count)
 blender::TEST (ghash, Int4GHash2000)
 blender::TEST (ghash, Int4Murmur2a2000)
 blender::TEST (ghash, Int4Map2000)
static void blender::multi_small_ghash_tests_one (GHash *ghash, RNG *rng, const uint count)
static void blender::multi_small_ghash_tests (GHash *ghash, const char *id, const uint count)
 blender::TEST (ghash, MultiRandIntGHash2000)
 blender::TEST (ghash, MultiRandIntGHash200000)
 blender::TEST (ghash, MultiRandIntMurmur2a2000)
 blender::TEST (ghash, MultiRandIntMurmur2a200000)

Variables

static constexpr bool blender::USE_RESERVE_COUNT = false
static constexpr size_t blender::TESTCASE_SIZE_SMALL = 17

Macro Definition Documentation

◆ GHASH_INTERNAL_API

#define GHASH_INTERNAL_API

Definition at line 8 of file BLI_map_performance_test.cc.