Home
last modified time | relevance | path

Searched refs:NUM_PINGS (Results 1 – 3 of 3) sorted by relevance

/third_party/libuv/test/
Dbenchmark-async.c28 #define NUM_PINGS (1000 * 1000) macro
50 if (ctx->worker_sent >= NUM_PINGS) in worker_async_cb()
62 if (ctx->main_sent >= NUM_PINGS) in main_async_cb()
106 ASSERT(ctx->worker_sent == NUM_PINGS); in test_async()
107 ASSERT(ctx->worker_seen == NUM_PINGS); in test_async()
108 ASSERT(ctx->main_sent == (unsigned int) NUM_PINGS); in test_async()
109 ASSERT(ctx->main_seen == (unsigned int) NUM_PINGS); in test_async()
115 fmt(NUM_PINGS / (time / 1e9))); in test_async()
Dbenchmark-async-pummel.c28 #define NUM_PINGS (1000 * 1000) macro
40 if (++callbacks == NUM_PINGS) { in async_cb()
Dtest-ping-pong.c32 #define NUM_PINGS 100 /* fewer pings to avoid timeout */ macro
34 #define NUM_PINGS 1000 macro
72 ASSERT_EQ(NUM_PINGS, pinger->pongs); in pinger_on_close()
151 if (pinger->pongs < NUM_PINGS) { in pinger_read_cb()