Home
last modified time | relevance | path

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

/libuv/test/
H A 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()
107 ASSERT_EQ(ctx->worker_sent, NUM_PINGS); in test_async()
108 ASSERT_EQ(ctx->worker_seen, NUM_PINGS); in test_async()
109 ASSERT_EQ(ctx->main_sent, (unsigned int) NUM_PINGS); in test_async()
110 ASSERT_EQ(ctx->main_seen, (unsigned int) NUM_PINGS); in test_async()
116 fmt(&fmtbuf, NUM_PINGS / (time / 1e9))); in test_async()
H A Dbenchmark-async-pummel.c28 #define NUM_PINGS (1000 * 1000) macro
40 if (++callbacks == NUM_PINGS) { in async_cb()
H A 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()

Completed in 9 milliseconds