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

Go to the source code of this file.

Classes

struct  async_req
 

Macros

#define MAX_CONCURRENT_REQS   32
 
#define NUM_ASYNC_REQS   (1 * (int) 1e5)
 
#define NUM_SYNC_REQS   (10 * 1e5)
 
#define sync_stat(req, path)
 

Functions

static void async_bench (const char *path)
 
 BENCHMARK_IMPL (fs_stat)
 
static void stat_cb (uv_fs_t *fs_req)
 
static void sync_bench (const char *path)
 
static void warmup (const char *path)
 

Macro Definition Documentation

◆ MAX_CONCURRENT_REQS

#define MAX_CONCURRENT_REQS   32

Definition at line 30 of file benchmark-fs-stat.c.

◆ NUM_ASYNC_REQS

#define NUM_ASYNC_REQS   (1 * (int) 1e5)

Definition at line 29 of file benchmark-fs-stat.c.

◆ NUM_SYNC_REQS

#define NUM_SYNC_REQS   (10 * 1e5)

Definition at line 28 of file benchmark-fs-stat.c.

◆ sync_stat

#define sync_stat (   req,
  path 
)
Value:
do { \
uv_fs_stat(NULL, (req), (path), NULL); \
uv_fs_req_cleanup((req)); \
} \
while (0)

Definition at line 32 of file benchmark-fs-stat.c.

Function Documentation

◆ async_bench()

static void async_bench ( const char *  path)
static

Definition at line 93 of file benchmark-fs-stat.c.

◆ BENCHMARK_IMPL()

BENCHMARK_IMPL ( fs_stat  )

Definition at line 129 of file benchmark-fs-stat.c.

◆ stat_cb()

static void stat_cb ( uv_fs_t fs_req)
static

Definition at line 84 of file benchmark-fs-stat.c.

◆ sync_bench()

static void sync_bench ( const char *  path)
static

Definition at line 62 of file benchmark-fs-stat.c.

◆ warmup()

static void warmup ( const char *  path)
static

Definition at line 46 of file benchmark-fs-stat.c.

check_documentation.path
path
Definition: check_documentation.py:57
req
static uv_connect_t req
Definition: test-connection-fail.c:30


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