aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/benchmark.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-06 18:01:03 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-06 18:01:03 +0000
commit371d302efbbbedf2b4818f3efae466bedab63a1e (patch)
tree433daed948c140f5e931bcfe8b7119b99be12780 /bench/benchmark.cpp
parent30ec34de362744fa9a3e82573cb23662aaafbf5a (diff)
- merge ei_xpr_copy and ei_eval_if_needed_before_nesting
- make use of CoeffReadCost to determine when to unroll the loops, for now only in Product.h and in OperatorEquals.h performance remains the same: generally still not as good as before the big changes.
Diffstat (limited to 'bench/benchmark.cpp')
-rw-r--r--bench/benchmark.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/bench/benchmark.cpp b/bench/benchmark.cpp
index ee58607cd..4ff678d8a 100644
--- a/bench/benchmark.cpp
+++ b/bench/benchmark.cpp
@@ -8,6 +8,10 @@
using namespace std;
USING_PART_OF_NAMESPACE_EIGEN
+#ifndef REPEAT
+#define REPEAT 40000000
+#endif
+
int main(int argc, char *argv[])
{
Matrix<double,MATSIZE,MATSIZE> I;
@@ -19,7 +23,7 @@ int main(int argc, char *argv[])
m(i,j) = (i+MATSIZE*j);
}
asm("#begin");
- for(int a = 0; a < 40000000; a++)
+ for(int a = 0; a < REPEAT; a++)
{
m = I + 0.00005 * (m + m*m);
}