watery01 / libyuv

Automatically exported from code.google.com/p/libyuv
0 stars 0 forks source link

Bilinear scale down by 2 is slow #238

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1062 - [       OK ] libyuvTest.ARGBScaleDownBy2_Bilinear (1062 ms)
113 - [       OK ] libyuvTest.ARGBScaleDownBy2_None (113 ms)

88 - [       OK ] libyuvTest.ARGBScaleDownBy4_Bilinear (88 ms)
52 - [       OK ] libyuvTest.ARGBScaleDownBy4_None (52 ms)

libyuv_unittest --gtest_filter=*ScaleDownBy2*
1046 - [       OK ] libyuvTest.ARGBScaleDownBy2_Bilinear (1046 ms)
114 - [       OK ] libyuvTest.ARGBScaleDownBy2_None (114 ms)
87 - [       OK ] libyuvTest.ScaleDownBy2_Box (87 ms)
86 - [       OK ] libyuvTest.ScaleDownBy2_Bilinear (86 ms)
51 - [       OK ] libyuvTest.ScaleDownBy2_None (51 ms)

Original issue reported on code.google.com by fbarch...@google.com on 30 May 2013 at 7:53

GoogleCodeExporter commented 9 years ago
r710 performance:

set LIBYUV_WIDTH=1920
set LIBYUV_HEIGHT=1080
set LIBYUV_REPEAT=1000

out\release\libyuv_unittest --gtest_filter=*ScaleDownBy2*
Note: Google Test filter = *ScaleDownBy2*
[==========] Running 9 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 9 tests from libyuvTest
[ RUN      ] libyuvTest.ARGBScaleDownBy2_None
filter 0 -      321 us C -      218 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy2_None (370 ms)
[ RUN      ] libyuvTest.ARGBScaleDownBy2_Bilinear
filter 1 -     2583 us C -     2956 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy2_Bilinear (3116 ms)
[ RUN      ] libyuvTest.ARGBScaleDownBy23_None
filter 0 -      676 us C -      654 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy23_None (834 ms)
[ RUN      ] libyuvTest.ARGBScaleDownBy23_Bilinear
filter 1 -    16941 us C -     1644 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy23_Bilinear (1864 ms)
[ RUN      ] libyuvTest.ScaleDownBy2_None
filter 0 -      334 us C -      106 us OPT
[       OK ] libyuvTest.ScaleDownBy2_None (163 ms)
[ RUN      ] libyuvTest.ScaleDownBy2_Bilinear
filter 1 -      886 us C -      176 us OPT
[       OK ] libyuvTest.ScaleDownBy2_Bilinear (235 ms)
[ RUN      ] libyuvTest.ScaleDownBy2_Box
filter 2 -     1483 us C -      201 us OPT
[       OK ] libyuvTest.ScaleDownBy2_Box (265 ms)
[ RUN      ] libyuvTest.ScaleDownBy23_None
filter 0 -     1981 us C -     1467 us OPT
[       OK ] libyuvTest.ScaleDownBy23_None (1534 ms)
[ RUN      ] libyuvTest.ScaleDownBy23_Bilinear
filter 1 -     3987 us C -     2260 us OPT
[       OK ] libyuvTest.ScaleDownBy23_Bilinear (2328 ms)
[----------] 9 tests from libyuvTest (10719 ms total)

[----------] Global test environment tear-down
[==========] 9 tests from 1 test case ran. (10721 ms total)
[  PASSED  ] 9 tests.

Original comment by fbarch...@google.com on 30 May 2013 at 11:54

GoogleCodeExporter commented 9 years ago
Fixed in r711
d:\src\libyuv\trunk>out\release\libyuv_unittest --gtest_filter=*ScaleDownBy2*
Note: Google Test filter = *ScaleDownBy2*
[==========] Running 9 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 9 tests from libyuvTest
[ RUN      ] libyuvTest.ARGBScaleDownBy2_None
filter 0 -      296 us C -      208 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy2_None (356 ms)
[ RUN      ] libyuvTest.ARGBScaleDownBy2_Bilinear
filter 1 -     2480 us C -      348 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy2_Bilinear (501 ms)
[ RUN      ] libyuvTest.ARGBScaleDownBy23_None
filter 0 -      585 us C -      475 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy23_None (624 ms)
[ RUN      ] libyuvTest.ARGBScaleDownBy23_Bilinear
filter 1 -    11079 us C -     1183 us OPT
[       OK ] libyuvTest.ARGBScaleDownBy23_Bilinear (1353 ms)
[ RUN      ] libyuvTest.ScaleDownBy2_None
filter 0 -      324 us C -       92 us OPT
[       OK ] libyuvTest.ScaleDownBy2_None (144 ms)
[ RUN      ] libyuvTest.ScaleDownBy2_Bilinear
filter 1 -      784 us C -      153 us OPT
[       OK ] libyuvTest.ScaleDownBy2_Bilinear (207 ms)
[ RUN      ] libyuvTest.ScaleDownBy2_Box
filter 2 -      784 us C -      156 us OPT
[       OK ] libyuvTest.ScaleDownBy2_Box (210 ms)
[ RUN      ] libyuvTest.ScaleDownBy23_None
filter 0 -     1196 us C -     1182 us OPT
[       OK ] libyuvTest.ScaleDownBy23_None (1238 ms)
[ RUN      ] libyuvTest.ScaleDownBy23_Bilinear
filter 1 -     3551 us C -     1897 us OPT
[       OK ] libyuvTest.ScaleDownBy23_Bilinear (1958 ms)
[----------] 9 tests from libyuvTest (6603 ms total)

[----------] Global test environment tear-down
[==========] 9 tests from 1 test case ran. (6606 ms total)
[  PASSED  ] 9 tests.

Original comment by fbarch...@google.com on 31 May 2013 at 1:01