diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-13 15:42:33 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-13 15:42:33 +0000 |
commit | fc15722a21308c46cfd0c8f1afce6e7435250725 (patch) | |
tree | 79b75955afc13193cc2d683b5275b72aa3df20af | |
parent | 163c84ba5026907fea7b4f4bdcf8b16c13103adc (diff) |
Turn down repeat count on ref counting and memory pool benches.
No reason these things need to run for 10s of ms.
http://codereview.appspot.com/6501122/
git-svn-id: http://skia.googlecode.com/svn/trunk@5524 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | bench/GrMemoryPoolBench.cpp | 6 | ||||
-rw-r--r-- | bench/RefCntBench.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp index 861a43e4fb..d9dc49d213 100644 --- a/bench/GrMemoryPoolBench.cpp +++ b/bench/GrMemoryPoolBench.cpp @@ -35,7 +35,7 @@ GrMemoryPool A::gPool(10 * (1 << 10), 10 * (1 << 10)); */ class GrMemoryPoolBenchStack : public SkBenchmark { enum { - N = SkBENCHLOOP(5 * (1 << 20)), + N = SkBENCHLOOP(1 * (1 << 20)), }; public: GrMemoryPoolBenchStack(void* param) : INHERITED(param) { @@ -90,7 +90,7 @@ private: */ class GrMemoryPoolBenchRandom : public SkBenchmark { enum { - N = SkBENCHLOOP(5 * (1 << 20)), + N = SkBENCHLOOP(1 * (1 << 20)), }; public: GrMemoryPoolBenchRandom(void* param) : INHERITED(param) { @@ -126,7 +126,7 @@ private: */ class GrMemoryPoolBenchQueue : public SkBenchmark { enum { - N = SkBENCHLOOP((1 << 10)), + N = SkBENCHLOOP((1 << 8)), M = SkBENCHLOOP(4 * (1 << 10)), }; public: diff --git a/bench/RefCntBench.cpp b/bench/RefCntBench.cpp index 965eb26d53..cdc81eb774 100644 --- a/bench/RefCntBench.cpp +++ b/bench/RefCntBench.cpp @@ -11,7 +11,7 @@ #include <memory> enum { - N = SkBENCHLOOP(1000000), + N = SkBENCHLOOP(100000), M = SkBENCHLOOP(2) }; |