From bf86b2e273616a773a468662093c4c9c17568cb3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 10 May 2011 00:42:18 -0700 Subject: [PATCH] Run ping-pong bench for 5 secs --- test/benchmark-ping-pongs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/benchmark-ping-pongs.c b/test/benchmark-ping-pongs.c index c3307b27..0b4d9e9c 100644 --- a/test/benchmark-ping-pongs.c +++ b/test/benchmark-ping-pongs.c @@ -27,7 +27,7 @@ #include /* strlen */ /* Run the benchmark for this many ms */ -#define TIME 1000 +#define TIME 5000 typedef struct { @@ -84,7 +84,7 @@ static void pinger_close_cb(oio_handle_t* handle, int status) { ASSERT(status == 0); pinger = (pinger_t*)handle->data; - printf("ping_pongs: %d pings\n", pinger->pongs); + LOGF("ping_pongs: %d roundtrips/s\n", (1000 * pinger->pongs) / TIME); free(pinger);