skia2/bench
commit-bot@chromium.org 644629c1c7 Implement a benchmark for GrResourceCache
Adds "grresourcecache_add" and "grresourcecache_find" bench tests to test
GrResourceCache::add and GrResourceCache::find. The tests work only
with GPU backends, since GrResourceCache needs an GrGpu.

Modifies bench tests to override SkBenchmark::isSuitableFor(Backend)
function that specifies what kind of backend the test is inteded
for. This replaces the previous "fIsRendering" flag that would
indicate test that did no rendering.

Adds SkCanvas::getGrContext() call to get the GrContext that the
canvas ends up drawing to. The member function solves a common
use-case that is also used in the benchmark added here.

R=mtklein@google.com, bsalomon@google.com

Author: kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/73643005

git-svn-id: http://skia.googlecode.com/svn/trunk@12334 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-11-21 06:21:58 +00:00
..
BenchTool/BenchTool.xcodeproj move main.cpp outside of the xcode project 2009-01-07 11:49:19 +00:00
AAClipBench.cpp Sanitizing source files in Housekeeper-Nightly 2013-09-17 07:01:20 +00:00
bench_analyze.py Adds a script to help analyze bench ranges to add/change in bench/bench_expectations.txt 2012-10-05 14:02:33 +00:00
bench_compare.py Make bench_compare executable. 2013-11-12 15:25:31 +00:00
bench_expectations_Perf-Android-Nexus7-Tegra3-Arm7-Release.txt Rebaseline bench expectations for tabl_theverge.skp_tile_256x256_grid. 2013-11-12 20:58:41 +00:00
bench_expectations_Perf-Ubuntu12-ShuttleA-ATI5770-x86-Release.txt Splits bench_expectations into per-bot files in preparation for growth. 2013-09-17 17:21:02 +00:00
bench_expectations_Perf-Win7-ShuttleA-HD2000-x86-Release.txt Update bench expectations. 2013-11-11 14:36:54 +00:00
bench_util.py bench_util: allow optional whitespace in CSV format 2013-08-13 15:12:33 +00:00
BenchGpuTimer_gl.cpp Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
BenchGpuTimer_gl.h Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
benchmain.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
BenchSysTimer_c.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_c.h Convert #warning to comment to get iOS compiling 2013-03-28 13:43:16 +00:00
BenchSysTimer_mach.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
BenchSysTimer_mach.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_posix.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_posix.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
BenchSysTimer_windows.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
BenchSysTimer_windows.h Fix two warnings in bench timers. 2011-10-03 20:44:39 +00:00
BenchTimer.cpp extend SkBenchmark to allow a bench to return a durationScale, which allows it to perform fewer actual interations, but report a scale factor to account for that. Thus a very slow bench can be compared head-to-head with a faster one, w/o actually forcing the tool to run for the full duration of the slower test. 2013-05-29 15:39:54 +00:00
BenchTimer.h extend SkBenchmark to allow a bench to return a durationScale, which allows it to perform fewer actual interations, but report a scale factor to account for that. Thus a very slow bench can be compared head-to-head with a faster one, w/o actually forcing the tool to run for the full duration of the slower test. 2013-05-29 15:39:54 +00:00
BicubicBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
BitmapBench.cpp store SkAlphaType inside SkBitmap, on road to support unpremul 2013-10-21 14:00:07 +00:00
BitmapRectBench.cpp Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning"" 2013-10-31 17:28:30 +00:00
BitmapScaleBench.cpp store SkAlphaType inside SkBitmap, on road to support unpremul 2013-10-21 14:00:07 +00:00
BlurBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
BlurImageFilterBench.cpp SSE2 implementation of RGBA box blurs. This yields ~2X perf improvement on Xeon ES-2690. 2013-11-08 20:49:04 +00:00
BlurRectBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
BlurRoundRectBench.cpp Removed deprecated API calls that have crept in 2013-11-10 15:08:45 +00:00
ChartBench.cpp Remove uses of unnamed namespace in bench/ directory. 2013-09-26 19:23:03 +00:00
check_bench_regressions.py Changes bench to output with git hash filename; cleans up bench_graph_svg to only handle bench alerts; renames it to check_bench_regressions. 2013-10-15 00:08:14 +00:00
ChecksumBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
ChromeBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
CmapBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
ColorFilterBench.cpp Luminance-to-alpha color filter (SkLumaColorFilter). 2013-10-07 18:00:17 +00:00
CoverageBench.cpp Sanitizing source files in Housekeeper-Nightly 2013-11-08 07:01:56 +00:00
DashBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
DecodeBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
DeferredCanvasBench.cpp It looks like we're not always running long enough to give the GPU counters time to converge (and possibly the same for CPU too, but GPU is definitely worse off). 2013-09-13 20:11:09 +00:00
DeferredSurfaceCopyBench.cpp move SkImage::ColorType into SkColorType 2013-11-01 13:46:54 +00:00
DisplacementBench.cpp Sanitizing source files in Housekeeper-Nightly 2013-10-29 07:01:50 +00:00
FontCacheBench.cpp Second wave of Win64 warning cleanup 2013-10-15 17:47:36 +00:00
FontScalerBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
FSRectBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
GameBench.cpp Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning"" 2013-10-31 17:28:30 +00:00
gen_bench_ranges.py Deletes bench_expectations.txt and change comments to refer to the new per-bot expectation files. 2013-09-25 20:51:16 +00:00
GradientBench.cpp Clear out SK_SCALAR_IS_FLOAT from SkRadialGradient, and merge the logic for radial_mirror and radial_repeat. 2013-10-16 18:59:44 +00:00
GrMemoryPoolBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
GrResourceCacheBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
gUniqueGlyphIDs.h switch array to uint16_t to fix overflows 2013-06-11 19:53:19 +00:00
HairlinePathBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
ImageCacheBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
ImageDecodeBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
InterpBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
LightingBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
LineBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
MagnifierBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
MathBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
Matrix44Bench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
MatrixBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
MatrixConvolutionBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
MemoryBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
MemsetBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
MergeBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
MorphologyBench.cpp Remove uses of unnamed namespace in bench/ directory. 2013-09-26 19:23:03 +00:00
MutexBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
PathBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
PathIterBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
PathUtilsBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
PerlinNoiseBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
PicturePlaybackBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
PictureRecordBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
PremulAndUnpremulAlphaOpsBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
ReadPixBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
RectBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
RectoriBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
RefCntBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
RegionBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
RegionContainBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
RepeatTileBench.cpp store SkAlphaType inside SkBitmap, on road to support unpremul 2013-10-21 14:00:07 +00:00
RTreeBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
ScalarBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
ShaderMaskBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
SkBenchLogger.cpp Report data from bench_pictures in the same fashion as bench. 2012-09-07 15:21:18 +00:00
SkBenchLogger.h Clean up SkTypes.h. 2013-10-11 18:50:45 +00:00
SkBenchmark.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
SkBenchmark.h Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
SkipZeroesBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
SortBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
StrokeBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
TableBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
TextBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
tile_analyze.py Script to plot tile vs. viewport comparison for given platform and revision. 2013-02-13 23:22:29 +00:00
TileBench.cpp Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning"" 2013-10-31 17:28:30 +00:00
TimerData.cpp Committed: http://code.google.com/p/skia/source/detail?r=10372 2013-07-31 20:00:56 +00:00
TimerData.h Committed: http://code.google.com/p/skia/source/detail?r=10372 2013-07-31 20:00:56 +00:00
VertBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
WritePixelsBench.cpp Refactoring: get rid of the SkBenchmark void* parameter. 2013-09-13 19:52:27 +00:00
WriterBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00
XfermodeBench.cpp Implement a benchmark for GrResourceCache 2013-11-21 06:21:58 +00:00