Macros | Functions | Variables
benchmark-loop-count.c File Reference
#include "task.h"
#include "uv.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for benchmark-loop-count.c:

Go to the source code of this file.

Macros

#define NUM_TICKS   (2 * 1000 * 1000)
 

Functions

 BENCHMARK_IMPL (loop_count)
 
 BENCHMARK_IMPL (loop_count_timed)
 
static void idle2_cb (uv_idle_t *handle)
 
static void idle_cb (uv_idle_t *handle)
 
static void timer_cb (uv_timer_t *handle)
 

Variables

static uv_idle_t idle_handle
 
static unsigned long ticks
 
static uv_timer_t timer_handle
 

Macro Definition Documentation

◆ NUM_TICKS

#define NUM_TICKS   (2 * 1000 * 1000)

Definition at line 28 of file benchmark-loop-count.c.

Function Documentation

◆ BENCHMARK_IMPL() [1/2]

BENCHMARK_IMPL ( loop_count  )

Definition at line 52 of file benchmark-loop-count.c.

◆ BENCHMARK_IMPL() [2/2]

BENCHMARK_IMPL ( loop_count_timed  )

Definition at line 76 of file benchmark-loop-count.c.

◆ idle2_cb()

static void idle2_cb ( uv_idle_t handle)
static

Definition at line 41 of file benchmark-loop-count.c.

◆ idle_cb()

static void idle_cb ( uv_idle_t handle)
static

Definition at line 35 of file benchmark-loop-count.c.

◆ timer_cb()

static void timer_cb ( uv_timer_t handle)
static

Definition at line 46 of file benchmark-loop-count.c.

Variable Documentation

◆ idle_handle

uv_idle_t idle_handle
static

Definition at line 31 of file benchmark-loop-count.c.

◆ ticks

unsigned long ticks
static

Definition at line 30 of file benchmark-loop-count.c.

◆ timer_handle

uv_timer_t timer_handle
static

Definition at line 32 of file benchmark-loop-count.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04