From 7a82a5bfb95c27a658e1ee3ed3b893aa46a25e0b Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Fri, 8 Oct 2010 21:40:37 +0300 Subject: [PATCH] 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 --- membench.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.44.0