[llvm-commits] [test-suite] r106425 - /test-suite/trunk/SingleSource/Benchmarks/Adobe-C++/stepanov_abstraction.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Jun 21 09:09:28 PDT 2010


Author: stoklund
Date: Mon Jun 21 11:09:27 2010
New Revision: 106425

URL: http://llvm.org/viewvc/llvm-project?rev=106425&view=rev
Log:
Speed up stepanov_abstraction benchmark for SMALL_PROBLEM_SIZE.
This benchmark is really slow for -O0 tests.

Modified:
    test-suite/trunk/SingleSource/Benchmarks/Adobe-C++/stepanov_abstraction.cpp

Modified: test-suite/trunk/SingleSource/Benchmarks/Adobe-C++/stepanov_abstraction.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Adobe-C%2B%2B/stepanov_abstraction.cpp?rev=106425&r1=106424&r2=106425&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Adobe-C++/stepanov_abstraction.cpp (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Adobe-C++/stepanov_abstraction.cpp Mon Jun 21 11:09:27 2010
@@ -165,7 +165,11 @@
 
 // this constant may need to be adjusted to give reasonable minimum times
 // For best results, times should be about 1.0 seconds for the minimum test run
+#ifdef SMALL_PROBLEM_SIZE
+int iterations = 10000;
+#else
 int iterations = 200000;
+#endif
 
 // 2000 items, or about 16k of data
 // this is intended to remain within the L2 cache of most common CPUs





More information about the llvm-commits mailing list