Classes | Macros | Typedefs | Functions | Variables
benchmark-multi-accept.c File Reference
#include "task.h"
#include "uv.h"
Include dependency graph for benchmark-multi-accept.c:

Go to the source code of this file.

Classes

struct  client_ctx
 
struct  ipc_client_ctx
 
struct  ipc_peer_ctx
 
struct  ipc_server_ctx
 
struct  server_ctx
 
union  stream_handle
 

Macros

#define IPC_PIPE_NAME   TEST_PIPENAME
 
#define NUM_CONNECTS   (250 * 1000)
 

Typedefs

typedef unsigned char handle_storage_t[sizeof(union stream_handle)]
 

Functions

 BENCHMARK_IMPL (tcp_multi_accept2)
 
 BENCHMARK_IMPL (tcp_multi_accept4)
 
 BENCHMARK_IMPL (tcp_multi_accept8)
 
static void cl_close_cb (uv_handle_t *handle)
 
static void cl_connect_cb (uv_connect_t *req, int status)
 
static void cl_idle_cb (uv_idle_t *handle)
 
static void get_listen_handle (uv_loop_t *loop, uv_stream_t *server_handle)
 
static void ipc_alloc_cb (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
 
static void ipc_close_cb (uv_handle_t *handle)
 
static void ipc_connect_cb (uv_connect_t *req, int status)
 
static void ipc_connection_cb (uv_stream_t *ipc_pipe, int status)
 
static void ipc_read_cb (uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf)
 
static void ipc_write_cb (uv_write_t *req, int status)
 
static void send_listen_handles (uv_handle_type type, unsigned int num_servers, struct server_ctx *servers)
 
static void server_cb (void *arg)
 
static void sv_alloc_cb (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
 
static void sv_async_cb (uv_async_t *handle)
 
static void sv_connection_cb (uv_stream_t *server_handle, int status)
 
static void sv_read_cb (uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf)
 
static int test_tcp (unsigned int num_servers, unsigned int num_clients)
 

Variables

static struct sockaddr_in listen_addr
 

Macro Definition Documentation

◆ IPC_PIPE_NAME

#define IPC_PIPE_NAME   TEST_PIPENAME

Definition at line 25 of file benchmark-multi-accept.c.

◆ NUM_CONNECTS

#define NUM_CONNECTS   (250 * 1000)

Definition at line 26 of file benchmark-multi-accept.c.

Typedef Documentation

◆ handle_storage_t

typedef unsigned char handle_storage_t[sizeof(union stream_handle)]

Definition at line 36 of file benchmark-multi-accept.c.

Function Documentation

◆ BENCHMARK_IMPL() [1/3]

BENCHMARK_IMPL ( tcp_multi_accept2  )

Definition at line 439 of file benchmark-multi-accept.c.

◆ BENCHMARK_IMPL() [2/3]

BENCHMARK_IMPL ( tcp_multi_accept4  )

Definition at line 444 of file benchmark-multi-accept.c.

◆ BENCHMARK_IMPL() [3/3]

BENCHMARK_IMPL ( tcp_multi_accept8  )

Definition at line 449 of file benchmark-multi-accept.c.

◆ cl_close_cb()

static void cl_close_cb ( uv_handle_t handle)
static

Definition at line 344 of file benchmark-multi-accept.c.

◆ cl_connect_cb()

static void cl_connect_cb ( uv_connect_t req,
int  status 
)
static

Definition at line 330 of file benchmark-multi-accept.c.

◆ cl_idle_cb()

static void cl_idle_cb ( uv_idle_t handle)
static

Definition at line 337 of file benchmark-multi-accept.c.

◆ get_listen_handle()

static void get_listen_handle ( uv_loop_t loop,
uv_stream_t server_handle 
)
static

Definition at line 242 of file benchmark-multi-accept.c.

◆ ipc_alloc_cb()

static void ipc_alloc_cb ( uv_handle_t handle,
size_t  suggested_size,
uv_buf_t buf 
)
static

Definition at line 163 of file benchmark-multi-accept.c.

◆ ipc_close_cb()

static void ipc_close_cb ( uv_handle_t handle)
static

Definition at line 146 of file benchmark-multi-accept.c.

◆ ipc_connect_cb()

static void ipc_connect_cb ( uv_connect_t req,
int  status 
)
static

Definition at line 153 of file benchmark-multi-accept.c.

◆ ipc_connection_cb()

static void ipc_connection_cb ( uv_stream_t ipc_pipe,
int  status 
)
static

Definition at line 107 of file benchmark-multi-accept.c.

◆ ipc_read_cb()

static void ipc_read_cb ( uv_stream_t handle,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 173 of file benchmark-multi-accept.c.

◆ ipc_write_cb()

static void ipc_write_cb ( uv_write_t req,
int  status 
)
static

Definition at line 139 of file benchmark-multi-accept.c.

◆ send_listen_handles()

static void send_listen_handles ( uv_handle_type  type,
unsigned int  num_servers,
struct server_ctx servers 
)
static

Definition at line 203 of file benchmark-multi-accept.c.

◆ server_cb()

static void server_cb ( void *  arg)
static

Definition at line 257 of file benchmark-multi-accept.c.

◆ sv_alloc_cb()

static void sv_alloc_cb ( uv_handle_t handle,
size_t  suggested_size,
uv_buf_t buf 
)
static

Definition at line 313 of file benchmark-multi-accept.c.

◆ sv_async_cb()

static void sv_async_cb ( uv_async_t handle)
static

Definition at line 282 of file benchmark-multi-accept.c.

◆ sv_connection_cb()

static void sv_connection_cb ( uv_stream_t server_handle,
int  status 
)
static

Definition at line 290 of file benchmark-multi-accept.c.

◆ sv_read_cb()

static void sv_read_cb ( uv_stream_t handle,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 322 of file benchmark-multi-accept.c.

◆ test_tcp()

static int test_tcp ( unsigned int  num_servers,
unsigned int  num_clients 
)
static

Definition at line 362 of file benchmark-multi-accept.c.

Variable Documentation

◆ listen_addr

struct sockaddr_in listen_addr
static

Definition at line 104 of file benchmark-multi-accept.c.



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