23 #include <freeradius-devel/util/acutest.h>
24 #include <freeradius-devel/util/acutest_helpers.h>
25 #include <freeradius-devel/util/time.h>
202 for (i = 0; i < 100000; i++) {
209 printf(
"printf pop rate %" PRIu64
"\n", rate);
212 if (!getenv(
"NO_PERFORMANCE_TESTS"))
TEST_CHECK(rate > 200000);
226 for (i = 0; i < 100000; i++) {
233 printf(
"const pop rate %" PRIu64
"\n", rate);
236 if (!getenv(
"NO_PERFORMANCE_TESTS"))
TEST_CHECK(rate > 1000000);
#define TEST_CHECK_STRCMP(_got, _exp)
#define fr_time()
Allow us to arbitrarily manipulate time.
static void strerror_const_benchmark(void)
static void strerror_printf_push_strerror(void)
static void strerror_perror_null(void)
static void strerror_printf(void)
static void strerror_printf_push_pop(void)
static void strerror_printf_push_append2(void)
static void strerror_printf_benchmark(void)
static void strerror_uninit(void)
static void strerror_printf_push_pop_multi(void)
static void strerror_printf_push_strerror_multi(void)
static void strerror_printf_push_append(void)
static void strerror_pop_uninit(void)
static void strerror_printf_strerror_append(void)
static int64_t fr_time_delta_unwrap(fr_time_delta_t time)
#define fr_time_sub(_a, _b)
Subtract one time from another.
void fr_perror(char const *fmt,...)
Print the current error to stderr with a prefix.
void fr_strerror_clear(void)
Clears all pending messages from the talloc pools.
char const * fr_strerror(void)
Get the last library error.
char const * fr_strerror_pop(void)
Pop the last library error.
#define fr_strerror_printf(_fmt,...)
Log to thread local error buffer.
#define fr_strerror_printf_push(_fmt,...)
Add a message to an existing stack of messages at the tail.
#define fr_strerror_const(_msg)