From 4cfcc7e8463f00e71d9ad4eb5f26ac826a99f374 Mon Sep 17 00:00:00 2001 From: enge Date: Thu, 6 Feb 2014 13:19:51 +0000 Subject: 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 --- tools/bench/benchtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ; \ -- cgit v1.2.1