[PATCH] D50529: [test-suite] Add Bilateral Filter kernel using benchmark library
Pankaj via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 9 12:53:23 PDT 2018
proton created this revision.
proton added reviewers: Meinersbur, homerdin, MatzeB, hfinkel.
Herald added subscribers: llvm-commits, mgorny.
Herald added a reviewer: bollu.
This patch adds BilateralFiltering kernel in "MicroBenchmarks/ImageProcessing"
Runtime
Without Polly: Total 11.576s
| Benchmark | Time | CPU | Iterations |
| -------------------------------- | -------- | -------- | ---------- |
| BENCHMARK_BILATERAL_FILTER/16/2 | 40 us | 40 us | 17268 |
| BENCHMARK_BILATERAL_FILTER/16/4 | 132 us | 132 us | 5343 |
| BENCHMARK_BILATERAL_FILTER/16/8 | 212 us | 212 us | 3304 |
| BENCHMARK_BILATERAL_FILTER/32/2 | 164 us | 164 us | 4278 |
| BENCHMARK_BILATERAL_FILTER/32/4 | 639 us | 639 us | 1084 |
| BENCHMARK_BILATERAL_FILTER/32/8 | 1910 us | 1909 us | 367 |
| BENCHMARK_BILATERAL_FILTER/64/2 | 699 us | 699 us | 1002 |
| BENCHMARK_BILATERAL_FILTER/64/4 | 2929 us | 2929 us | 239 |
| BENCHMARK_BILATERAL_FILTER/64/8 | 10387 us | 10385 us | 67 |
| BENCHMARK_BILATERAL_FILTER/128/2 | 2887 us | 2887 us | 243 |
| BENCHMARK_BILATERAL_FILTER/128/4 | 12303 us | 12300 us | 57 |
| BENCHMARK_BILATERAL_FILTER/128/8 | 47775 us | 47767 us | 15 |
|
With Polly : Total 11.684s
| Benchmark | Time | CPU | Iterations |
| -------------------------------- | -------- | -------- | ---------- |
| BENCHMARK_BILATERAL_FILTER/16/2 | 41 us | 41 us | 16948 |
| BENCHMARK_BILATERAL_FILTER/16/4 | 133 us | 133 us | 5286 |
| BENCHMARK_BILATERAL_FILTER/16/8 | 215 us | 215 us | 3258 |
| BENCHMARK_BILATERAL_FILTER/32/2 | 168 us | 168 us | 4175 |
| BENCHMARK_BILATERAL_FILTER/32/4 | 644 us | 644 us | 1089 |
| BENCHMARK_BILATERAL_FILTER/32/8 | 1932 us | 1932 us | 362 |
| BENCHMARK_BILATERAL_FILTER/64/2 | 717 us | 716 us | 978 |
| BENCHMARK_BILATERAL_FILTER/64/4 | 2949 us | 2949 us | 238 |
| BENCHMARK_BILATERAL_FILTER/64/8 | 10522 us | 10521 us | 67 |
| BENCHMARK_BILATERAL_FILTER/128/2 | 2960 us | 2960 us | 237 |
| BENCHMARK_BILATERAL_FILTER/128/4 | 12495 us | 12493 us | 56 |
| BENCHMARK_BILATERAL_FILTER/128/8 | 48491 us | 48483 us | 14 |
|
Even after repeated runs, this small difference in runtime is there.
Repository:
rT test-suite
https://reviews.llvm.org/D50529
Files:
MicroBenchmarks/ImageProcessing/BilateralFiltering/CMakeLists.txt
MicroBenchmarks/ImageProcessing/BilateralFiltering/bilateralFilter.reference_output
MicroBenchmarks/ImageProcessing/BilateralFiltering/bilateralFilterKernel.c
MicroBenchmarks/ImageProcessing/BilateralFiltering/bilateralFiltering.h
MicroBenchmarks/ImageProcessing/BilateralFiltering/main.cpp
MicroBenchmarks/ImageProcessing/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50529.159977.patch
Type: text/x-patch
Size: 7367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180809/8eb4b522/attachment.bin>
More information about the llvm-commits
mailing list