diff options
author | Florin Malita <fmalita@chromium.org> | 2017-11-16 09:33:36 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-24 17:12:42 +0000 |
commit | cda4e94b0d47ddcc3bdeb1a5295f57e35c0be42e (patch) | |
tree | 3a89b67d9e09509643b016098ef17d7f8229e9df /gn/bench.gni | |
parent | e5ae84bea7ea2724c9d0ca4825eae1303440a9ac (diff) |
Add a bench for comparing complex clip strategies
Clip consisting of a union of |n| circles.
Comparing mask (2x saveLayer + srcIn) vs. clipPath approaches.
MBP numbers:
! -> high variance, ? -> moderate variance
micros bench
233.05 ! clip_strategy_mask_100 gl
207.61 ! clip_strategy_mask_10 gl
210.41 ? clip_strategy_mask_5 gl
219.10 ? clip_strategy_mask_1 gl
115.56 ? clip_strategy_path_100 gl
113.29 ! clip_strategy_path_10 gl
102.36 ? clip_strategy_path_5 gl
6.37 ? clip_strategy_path_1 gl
361.06 ! clip_strategy_mask_100 8888
328.97 ! clip_strategy_mask_10 8888
316.72 ! clip_strategy_mask_5 8888
325.84 ! clip_strategy_mask_1 8888
368.54 ! clip_strategy_path_100 8888
306.99 ! clip_strategy_path_10 8888
298.71 ! clip_strategy_path_5 8888
191.00 ! clip_strategy_path_1 8888
TBR=
Change-Id: I945c12e2e35b9847af06342473e56272e2041e21
Reviewed-on: https://skia-review.googlesource.com/72521
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'gn/bench.gni')
-rw-r--r-- | gn/bench.gni | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/bench.gni b/gn/bench.gni index e56c2e58d0..e1df5ba09d 100644 --- a/gn/bench.gni +++ b/gn/bench.gni @@ -28,6 +28,7 @@ bench_sources = [ "$_bench/ChecksumBench.cpp", "$_bench/ChromeBench.cpp", "$_bench/ClipMaskBench.cpp", + "$_bench/ClipStrategyBench.cpp", "$_bench/CmapBench.cpp", "$_bench/CodecBench.cpp", "$_bench/ColorCanvasDrawBitmapBench.cpp", |