Go to the documentation of this file.
25 #define NUM_TIMERS (10 * 1000 * 1000)
51 timers = malloc(
NUM_TIMERS *
sizeof(timers[0]));
78 fprintf(
stderr,
"%.2f seconds total\n", (after_all - before_all) / 1e9);
79 fprintf(
stderr,
"%.2f seconds init\n", (before_run - before_all) / 1e9);
80 fprintf(
stderr,
"%.2f seconds dispatch\n", (after_run - before_run) / 1e9);
81 fprintf(
stderr,
"%.2f seconds cleanup\n", (after_all - after_run) / 1e9);
BENCHMARK_IMPL(million_timers)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_EXTERN uv_loop_t * uv_default_loop(void)
unsigned __int64 uint64_t
static int close_cb_called
static void timer_cb(uv_timer_t *handle)
static void close_cb(uv_handle_t *handle)
#define MAKE_VALGRIND_HAPPY()
static int timer_cb_called
UV_EXTERN uint64_t uv_hrtime(void)
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:45