skufog / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Attenuate is slow #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
chronos@localhost $ ./runyuv10 Atten*
sudo LIBYUV_REPEAT=1000 nice --5 ./libyuv_unittest --gtest_filter=*Atten* | sed 
's/\(.*(\)\([0-9]*\)\( ms)\)/\2 - \1\2\3/g' | sort -rn | grep ms
4773 - [       OK ] libyuvTest.TestAttenuate (4773 ms)
[==========] 1 test from 1 test case ran. (4774 ms total)

Original issue reported on code.google.com by fbarch...@google.com on 27 Nov 2012 at 10:39

GoogleCodeExporter commented 9 years ago
Fixed in r506
libyuvTest.TestAttenuate (939 ms)

New tests for 720p and alignment.
libyuvTest.ARGBAttenuate_Any (2752 ms)
libyuvTest.ARGBAttenuate_Invert (2289 ms)
libyuvTest.ARGBAttenuate_Unaligned (2254 ms)
libyuvTest.ARGBAttenuate_Opt (2252 ms)

Added Any version for x86 as well.
Was
ARGBAttenuate_Unaligned (4232 ms)
ARGBAttenuate_Any (4147 ms)
ARGBAttenuate_Invert (948 ms)
ARGBAttenuate_Opt (931 ms)
TestAttenuate (838 ms)

Now
ARGBAttenuate_Unaligned (4147 ms)
ARGBAttenuate_Any (902 ms)
ARGBAttenuate_Opt (886 ms)
ARGBAttenuate_Invert (880 ms)
TestAttenuate (821 ms)

Original comment by fbarch...@chromium.org on 28 Nov 2012 at 8:01