Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: bench/MemcpyBench.cpp

Issue 347823004: Remove Sk prefix from some bench classes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkGMBench -> GMBench Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « bench/MatrixConvolutionBench.cpp ('k') | bench/MemoryBench.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkBenchmark.h" 8 #include "Benchmark.h"
9 #include "SkRandom.h" 9 #include "SkRandom.h"
10 #include "SkTemplates.h" 10 #include "SkTemplates.h"
11 #include "SkUtils.h" 11 #include "SkUtils.h"
12 12
13 template <typename Memcpy32> 13 template <typename Memcpy32>
14 class Memcpy32Bench : public SkBenchmark { 14 class Memcpy32Bench : public Benchmark {
15 public: 15 public:
16 explicit Memcpy32Bench(int count, Memcpy32 memcpy32, const char* name) 16 explicit Memcpy32Bench(int count, Memcpy32 memcpy32, const char* name)
17 : fCount(count) 17 : fCount(count)
18 , fMemcpy32(memcpy32) 18 , fMemcpy32(memcpy32)
19 , fName(SkStringPrintf("%s_%d", name, count)) {} 19 , fName(SkStringPrintf("%s_%d", name, count)) {}
20 20
21 virtual const char* onGetName() SK_OVERRIDE { 21 virtual const char* onGetName() SK_OVERRIDE {
22 return fName.c_str(); 22 return fName.c_str();
23 } 23 }
24 24
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Test our chosen best, from SkUtils.h 151 // Test our chosen best, from SkUtils.h
152 BENCH(sk_memcpy32, 10) 152 BENCH(sk_memcpy32, 10)
153 BENCH(sk_memcpy32, 100) 153 BENCH(sk_memcpy32, 100)
154 BENCH(sk_memcpy32, 1000) 154 BENCH(sk_memcpy32, 1000)
155 BENCH(sk_memcpy32, 10000) 155 BENCH(sk_memcpy32, 10000)
156 BENCH(sk_memcpy32, 100000) 156 BENCH(sk_memcpy32, 100000)
157 157
158 #endif // SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 158 #endif // SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2
159 159
160 #undef BENCH 160 #undef BENCH
OLDNEW
« no previous file with comments | « bench/MatrixConvolutionBench.cpp ('k') | bench/MemoryBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698