libyuv/unit_test
Frank Barchard 16f12b58cc Replace random with fastrand
random / rand is slow and impacts performance testing.
Although its only called to clear a frame once, a typical profile shows
it high in the overall profile, when doing 1000 frames for a benchmark.

95.10%  libyuv_unittest  libyuv_unittest      [.] YUY2ToARGBRow_SSSE3
 2.01%  libyuv_unittest  libc-2.19.so         [.] __random_r
 1.13%  libyuv_unittest  libc-2.19.so         [.] __random

Replace random is a faster version for unittests.

set LIBYUV_WIDTH=1280
set LIBYUV_HEIGHT=720
set LIBYUV_REPEAT=999
set LIBYUV_FLAGS=-1
out\release\libyuv_unittest --gtest_filter=*YUY2ToARGB*  | findms

Was
libyuvTest.YUY2ToARGB_Opt (497 ms)

Now
libyuvTest.YUY2ToARGB_Opt (454 ms)

R=harryjin@google.com
BUG=none

Review URL: https://codereview.chromium.org/1361813002 .
2015-09-22 15:47:36 -07:00
..
testdata Detect asimd as same as Neon for Arm features. Used on Juno aarch64 linux. 2014-09-22 18:30:17 +00:00
basictypes_test.cc if types are already defined, dont define them again. 2013-02-05 02:17:18 +00:00
color_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
compare_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
convert_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
cpu_test.cc Detect asimd as same as Neon for Arm features. Used on Juno aarch64 linux. 2014-09-22 18:30:17 +00:00
math_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
planar_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
rotate_argb_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
rotate_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
scale_argb_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
scale_color_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
scale_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
unit_test.cc Replace random with fastrand 2015-09-22 15:47:36 -07:00
unit_test.h Replace random with fastrand 2015-09-22 15:47:36 -07:00
version_test.cc disable version which fails under git 2015-06-16 10:02:41 -07:00
video_common_test.cc Remove Q420 fourcc support. 2015-02-11 18:20:54 +00:00