#include <freeradius-devel/util/acutest.h>
#include <freeradius-devel/util/acutest_helpers.h>
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/time.h>
#include <freeradius-devel/util/heap.h>
#include "lst.c"
Go to the source code of this file.
◆ lst_thing
◆ BURN_IN_OPS
#define BURN_IN_OPS (10000000) |
◆ LST_CYCLE_SIZE
#define LST_CYCLE_SIZE (1600000) |
◆ LST_TEST_SIZE
◆ NVALUES
◆ array_pop()
◆ fr_lst_contains()
◆ lst_burn_in()
static void lst_burn_in |
( |
void |
| ) |
|
|
static |
◆ lst_cmp()
static int8_t lst_cmp |
( |
void const * |
one, |
|
|
void const * |
two |
|
) |
| |
|
static |
◆ lst_cycle()
static void lst_cycle |
( |
void |
| ) |
|
|
static |
◆ lst_iter()
static void lst_iter |
( |
void |
| ) |
|
|
static |
◆ lst_stress_realloc()
static void lst_stress_realloc |
( |
void |
| ) |
|
|
static |
◆ lst_test()
static void lst_test |
( |
int |
skip | ) |
|
|
static |
◆ lst_test_basic()
static void lst_test_basic |
( |
void |
| ) |
|
|
static |
◆ lst_test_skip_1()
static void lst_test_skip_1 |
( |
void |
| ) |
|
|
static |
◆ lst_test_skip_10()
static void lst_test_skip_10 |
( |
void |
| ) |
|
|
static |
◆ lst_test_skip_2()
static void lst_test_skip_2 |
( |
void |
| ) |
|
|
static |
◆ populate_values()
static void populate_values |
( |
lst_thing |
values[], |
|
|
unsigned int |
len |
|
) |
| |
|
static |
◆ queue_cmp()
static void queue_cmp |
( |
unsigned int |
count | ) |
|
|
static |
Benchmarks for LSTs vs heaps when used as queues.
Definition at line 425 of file lst_tests.c.
◆ queue_cmp_10()
static void queue_cmp_10 |
( |
void |
| ) |
|
|
static |
◆ queue_cmp_100()
static void queue_cmp_100 |
( |
void |
| ) |
|
|
static |
◆ queue_cmp_1000()
static void queue_cmp_1000 |
( |
void |
| ) |
|
|
static |
◆ queue_cmp_50()
static void queue_cmp_50 |
( |
void |
| ) |
|
|
static |
◆ talloc_free()
◆ TEST_CHECK()
TEST_CHECK |
( |
total |
= 190 | ) |
|
◆ TEST_LIST
Initial value:= {
{ NULL }
}
static void queue_cmp_100(void)
static void lst_test_skip_10(void)
static void queue_cmp_50(void)
static void lst_cycle(void)
static void lst_burn_in(void)
static void lst_test_basic(void)
static void lst_iter(void)
static void queue_cmp_1000(void)
static void lst_test_skip_2(void)
static void queue_cmp_10(void)
static void lst_test_skip_1(void)
static void lst_stress_realloc(void)
Definition at line 565 of file lst_tests.c.