Go to the documentation of this file.
28 #define NUM_SYNC_REQS (10 * 1e5)
29 #define NUM_ASYNC_REQS (1 * (int) 1e5)
30 #define MAX_CONCURRENT_REQS 32
32 #define sync_stat(req, path) \
34 uv_fs_stat(NULL, (req), (path), NULL); \
35 uv_fs_req_cleanup((req)); \
57 for (
i = 0;
i < 16;
i++)
76 printf(
"%s stats (sync): %.2fs (%s/s)\n",
87 if (*
req->count == 0)
return;
114 printf(
"%s stats (%d concurrent): %.2fs (%s/s)\n",
130 const char path[] =
".";
static uv_udp_send_t reqs[ARRAY_SIZE(sockets)]
#define ARRAY_SIZE(array)
UV_EXTERN int uv_fs_stat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
static void stat_cb(uv_fs_t *fs_req)
static void sync_bench(const char *path)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
#define container_of(ptr, type, member)
static void warmup(const char *path)
IntBeforeRegisterTypedTestSuiteP before
UV_EXTERN uv_loop_t * uv_default_loop(void)
#define MAX_CONCURRENT_REQS
unsigned __int64 uint64_t
static void async_bench(const char *path)
#define sync_stat(req, path)
IntAfterTypedTestSuiteP after
#define MAKE_VALGRIND_HAPPY()
GTEST_API_ const char * fmt
UV_EXTERN uint64_t uv_hrtime(void)
UV_EXTERN void uv_fs_req_cleanup(uv_fs_t *req)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:36