Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
#include <iostream>
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <random>
#include <vector>
#include <unordered_set>
#include <catch2/catch_amalgamated.hpp>
#include <jau/test/catch2_ext.hpp>
#include "test_datatype01.hpp"
#include <jau/basic_types.hpp>
#include <jau/basic_algos.hpp>
#include <jau/counting_allocator.hpp>
#include <jau/callocator.hpp>
#include <jau/counting_callocator.hpp>
#include <jau/darray.hpp>
#include <jau/cow_darray.hpp>
#include <jau/cow_vector.hpp>
Go to the source code of this file.
Macros | |
#define | CATCH_CONFIG_RUNNER |
#define | USE_JAU_ITER_ALGO 1 |
Functions | |
template<class T > | |
const DataType01 * | findDataSet01_hash (T &data, DataType01 const &elem) noexcept |
template<class T > | |
static int | test_00_list_itr (T &data) |
template<class T , typename Size_type > | |
static void | test_00_seq_find_itr (T &data) |
template<class T > | |
static void | test_00_seq_find_hash (T &data) |
template<class T , typename Size_type > | |
static void | test_00_seq_fill (T &data, const Size_type size) |
template<class T , typename Size_type > | |
static void | test_00_seq_fill_unique_itr (T &data, const Size_type size) |
template<class T > | |
static void | test_00_seq_fill_unique_hash (T &data, const std::size_t size) |
template<class T > | |
static void | print_mem (const std::string &pre, const T &data) |
template<class T , typename Size_type > | |
static bool | test_01_seq_fill_list_itr (const std::string &type_id, const Size_type size0, const Size_type reserve0, const bool do_print_mem) |
template<class T > | |
static std::size_t | get_capacity (const T &data) |
static bool | test_01_seq_fill_list_hash (const std::string &type_id, const std::size_t size0, const std::size_t reserve0, const bool do_print_mem) |
template<class T , typename Size_type > | |
static bool | test_02_seq_fillunique_find_itr (const std::string &type_id, const Size_type size0, const Size_type reserve0) |
static bool | test_02_seq_fillunique_find_hash (const std::string &type_id, const std::size_t size0, const std::size_t reserve0) |
template<class T , typename Size_type > | |
static bool | footprint_fillseq_list_itr (const std::string &type_id, const bool do_rserv) |
static bool | footprint_fillseq_list_hash (const std::string &type_id, const bool do_rserv) |
template<class T , typename Size_type > | |
static bool | benchmark_fillunique_find_itr (const std::string &title_pre, const std::string &type_id, const bool do_rserv) |
static bool | benchmark_fillunique_find_hash (const std::string &title_pre, const std::string &type_id, const bool do_rserv) |
TEST_CASE ("Memory Footprint 01 - Fill Sequential and List", "[datatype][footprint]") | |
TEST_CASE ("Perf Test 02 - Fill Unique and List, empty and reserve", "[datatype][unique]") | |
Variables | |
static uint8_t | start_addr_b [] = {0x20, 0x26, 0x2A, 0x01, 0x20, 0x10} |
static Addr48Bit | start_addr (start_addr_b) |
#define CATCH_CONFIG_RUNNER |
Definition at line 33 of file test_hashset_perf01.cpp.
#define USE_JAU_ITER_ALGO 1 |
Definition at line 55 of file test_hashset_perf01.cpp.
|
static |
Definition at line 340 of file test_hashset_perf01.cpp.
|
static |
Definition at line 312 of file test_hashset_perf01.cpp.
|
noexcept |
|
static |
Definition at line 301 of file test_hashset_perf01.cpp.
|
static |
Definition at line 291 of file test_hashset_perf01.cpp.
|
static |
Definition at line 201 of file test_hashset_perf01.cpp.
|
static |
Definition at line 152 of file test_hashset_perf01.cpp.
|
static |
|
static |
|
static |
Definition at line 138 of file test_hashset_perf01.cpp.
|
static |
|
static |
Definition at line 93 of file test_hashset_perf01.cpp.
|
static |
|
static |
Definition at line 210 of file test_hashset_perf01.cpp.
|
static |
|
static |
Definition at line 263 of file test_hashset_perf01.cpp.
|
static |
Definition at line 241 of file test_hashset_perf01.cpp.
TEST_CASE | ( | "Memory Footprint 01 - Fill Sequential and List" | , |
"" | [datatype][footprint] | ||
) |
TEST_CASE | ( | "Perf Test 02 - Fill Unique and | List, |
empty and reserve" | , | ||
"" | [datatype][unique] | ||
) |
|
static |
|
static |
Definition at line 50 of file test_hashset_perf01.cpp.