From: Timo Kokkonen Date: Fri, 8 Oct 2010 18:40:37 +0000 (+0300) Subject: Transfer equal amount of bytes during each block X-Git-Url: http://git.itanic.dy.fi/?p=membench;a=commitdiff_plain;h=7a82a5bfb95c27a658e1ee3ed3b893aa46a25e0b Transfer equal amount of bytes during each block It makes really no sense to have it run large block size longer. Signed-off-by: Timo Kokkonen --- diff --git a/membench.c b/membench.c index 63a8ed5..e99e6ea 100644 --- a/membench.c +++ b/membench.c @@ -142,6 +142,11 @@ int main(int argc, char *argv[]) printf("\n"); + count /= 2; + count = count ? count : 1; + latcount = count / 10; + latcount = latcount ? latcount : 1; + free(buf); } return 0;