lkml.org 
[lkml]   [2014]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] perf: bench: fix memcpy/memset output

* Rabin Vincent <rabin.vincent@axis.com> wrote:

> The memcpy and memset benchmarks return bogus results when iterations >
> 0 because the iterations value is not taken into account when
> calculating the final result:
>
> $ perf bench mem memset --only-prefault --length 1GB --iterations 1
> # Running 'mem/memset' benchmark:
> # Copying 1GB Bytes ...
>
> 20.798669 GB/Sec (with prefault)
> $ perf bench mem memset --only-prefault --length 1GB --iterations 10
> # Running 'mem/memset' benchmark:
> # Copying 1GB Bytes ...
>
> 2.086576 GB/Sec (with prefault)
> $ perf bench mem memset --only-prefault --length 1GB --iterations 100
> # Running 'mem/memset' benchmark:
> # Copying 1GB Bytes ...
>
> 212.840917 MB/Sec (with prefault)
>
> Fix this.
>
> Signed-off-by: Rabin Vincent <rabin.vincent@axis.com>

Acked-by: Ingo Molnar <mingo@kernel.org>

Thanks,

Ingo


\
 
 \ /
  Last update: 2014-12-08 12:01    [W:0.058 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site