skia2/bench
Mike Klein 912947737a Use __rdtsc on Windows.
This seems to be ~100x higher resolution than QueryPerformanceCounter.  AFAIK, all our Windows perf bots have constant_tsc, so we can be a bit more direct about using rdtsc directly: it'll always tick at the max CPU frequency.

Now, the question remains, what is the max CPU frequency to divide through by?  It looks like QueryPerformanceFrequency actually gives the CPU frequency in kHz, suspiciously exactly what we need to divide through to get elapsed milliseconds.  That was a freebie.

I did some before/after comparison on slow benchmarks.  Timings look the same.  Going to land this without review tonight to see what happens on the bots; happy to review carefully tomorrow.

R=mtklein@google.com
TBR=bungeman

BUG=skia:

Review URL: https://codereview.chromium.org/394363003
2014-07-16 19:59:32 -04:00
..
BenchTool/BenchTool.xcodeproj Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
AAClipBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
bench_compare.py Make bench_compare executable. 2013-11-12 15:25:31 +00:00
bench_util.py gen_bench_expectations to generate bench expectations files. 2014-03-17 21:16:29 +00:00
BenchLogger.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
BenchLogger.h Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
benchmain.cpp Remove useless options from bench 2014-07-09 12:25:27 -07:00
Benchmark.cpp Remove useless options from bench 2014-07-09 12:25:27 -07:00
Benchmark.h Remove useless options from bench 2014-07-09 12:25:27 -07:00
BitmapBench.cpp add rowbytes option to allocPixels 2014-06-28 14:26:36 -07:00
BitmapRectBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
BitmapScaleBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
BlurBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
BlurImageFilterBench.cpp remove unnecessary bitmapdevice references 2014-06-27 05:49:54 -07:00
BlurRectBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
BlurRoundRectBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ChartBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
check_bench_regressions.py Adds dashboard link for one-line plot on each alert item. 2014-05-13 17:38:17 +00:00
ChecksumBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ChromeBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
CmapBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ColorFilterBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ColorPrivBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
CoverageBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
DashBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
DecodeBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
DeferredSurfaceCopyBench.cpp stop calling SkCanvas::getDevice 2014-06-30 09:05:34 -07:00
DisplacementBench.cpp remove unnecessary bitmapdevice references 2014-06-27 05:49:54 -07:00
ETCBitmapBench.cpp Cleanup usage of GetResourcePath() after commit bcbc1788b4. 2014-07-01 12:35:49 -07:00
FontCacheBench.cpp Slim Skia down to just one murmur3 implementation. 2014-07-10 06:03:46 -07:00
FontScalerBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
FSRectBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
GameBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
gen_bench_expectations.py Added in framework to get more bench data 2014-06-12 11:27:40 -07:00
GMBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
GMBench.h Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
GradientBench.cpp Simple GPU based dithering: 2014-06-19 14:14:06 -07:00
GrMemoryPoolBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
GrOrderedSetBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
GrResourceCacheBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
gUniqueGlyphIDs.h switch array to uint16_t to fix overflows 2013-06-11 19:53:19 +00:00
HairlinePathBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ImageCacheBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ImageDecodeBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ImageFilterDAGBench.cpp draft gpu support in nanobench 2014-07-01 08:43:42 -07:00
InterpBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
LightingBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
LineBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
MagnifierBench.cpp remove unnecessary bitmapdevice references 2014-06-27 05:49:54 -07:00
MathBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
Matrix44Bench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
MatrixBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
MatrixConvolutionBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
MemcpyBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
MemoryBench.cpp Have Clang builders build in C++11 mode. 2014-06-30 12:33:11 -07:00
MemsetBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
MergeBench.cpp remove unnecessary bitmapdevice references 2014-06-27 05:49:54 -07:00
microbench.json Add schemas to Skia repo 2014-06-23 09:02:38 -07:00
MorphologyBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
MutexBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
nanobench.cpp Use __rdtsc on Windows. 2014-07-16 19:59:32 -04:00
PathBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
PathIterBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
PathUtilsBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
PerlinNoiseBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
PicturePlaybackBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
PictureRecordBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
PremulAndUnpremulAlphaOpsBench.cpp Use unpremul for premul_and_unpremul_alpha_ bench. 2014-07-11 10:45:11 -07:00
QuadTreeBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ReadPixBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
RectanizerBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
RectBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
RectoriBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
RefCntBench.cpp Add support for 64bit atomic inc/dec/cas 2014-07-11 08:42:11 -07:00
RegionBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
RegionContainBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
RepeatTileBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ResultsWriter.cpp Make SKP bench JSON ouput better 2014-06-26 11:26:41 -07:00
ResultsWriter.h Make SKP bench JSON ouput better 2014-06-26 11:26:41 -07:00
RTreeBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ScalarBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
ShaderMaskBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
SkipZeroesBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
skpbench.json Fix scale type in JSON format 2014-06-26 15:39:31 -07:00
SortBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
StackBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
StrokeBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
TableBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
TextBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07: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 Disable bogus _scaled benches until we can figure out why they're bogus. 2014-06-24 15:19:26 -07:00
VertBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
WritePixelsBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
WriterBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00
XfermodeBench.cpp Remove Sk prefix from some bench classes. 2014-06-19 12:32:29 -07:00