diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2014-02-06 13:19:51 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2014-02-06 13:19:51 +0000 |
commit | 4cfcc7e8463f00e71d9ad4eb5f26ac826a99f374 (patch) | |
tree | ba187dbdc34362010c1b8c5ad9a4547c1701b464 | |
parent | 4901076ded69d112422b6407010b3e50cc3fc6d3 (diff) | |
download | mpc-4cfcc7e8463f00e71d9ad4eb5f26ac826a99f374.tar.gz |
bench: Correct factor of 2 in estimation of ops per second.
Reduce computation time for the inaccurate phase.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1448 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r-- | tools/bench/benchtime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bench/benchtime.h b/tools/bench/benchtime.h index 034618e..c95eef9 100644 --- a/tools/bench/benchtime.h +++ b/tools/bench/benchtime.h @@ -50,8 +50,9 @@ __attribute__ ((__unused__)) int nop)\ double TIME_NOP##func(int n, mpc_t* z, mpc_t* x, mpc_t* y) \ { \ double t; unsigned long int nbcall, mytime; \ - for (nbcall = 1, mytime=0; mytime<100000; nbcall<<=1) \ + for (nbcall = 1, mytime=0; mytime<25000; ) \ { \ + nbcall <<= 1; \ mytime = ACCURATE_TIME_NOP##func(nbcall, n, z, x, y, nop); \ } \ t = (double) mytime/ nbcall ; \ |