[PATCH] D46735: [Test-Suite] Added Box Blur And Sobel Edge Detection
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 11 13:47:02 PDT 2018
hfinkel added a comment.
In https://reviews.llvm.org/D46735#1096464, @proton wrote:
> In https://reviews.llvm.org/D46735#1095482, @MatzeB wrote:
>
> > Are you writing these from scratch? If so, I'd like to make some suggestions:
> >
> > - Please aim for a runtime for 0.5-1 second on typical hardware. Shorter benchmarks tend to be hard to time correctly, running longer doesn't increase precision in our experience.
>
>
> But the fraction of noise will be more for shorter runtimes. A longer runtime will help us when we to see the performance improvement after applying optimization.
The question is: At what point is a performance change interesting? If we posit that a performance change is interesting at the ~1% level, and we can distinguish application-time running-time differences at around 0.01s, then running for 1-2s is sufficient for tracking. As the test suite gets larger, we have an overarching goal of keeping the overall execution time in check (in part, so we can run it more often). It's often better to collect statistics over multiple runs, compared to a single longer run, regardless.
Also, if there are particular kernels you're trying to benchmark it's better to time them separately. We have a nice infrastructure to do that now, making use of the Google benchmark library, in the MicroBenchmarks subdirectory.
Repository:
rT test-suite
https://reviews.llvm.org/D46735
More information about the llvm-commits
mailing list