diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-04-06 18:01:03 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-04-06 18:01:03 +0000 |
commit | 371d302efbbbedf2b4818f3efae466bedab63a1e (patch) | |
tree | 433daed948c140f5e931bcfe8b7119b99be12780 /bench | |
parent | 30ec34de362744fa9a3e82573cb23662aaafbf5a (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')
-rw-r--r-- | bench/benchmark.cpp | 6 |
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); } |