measure costs of computation on mpf t-variables

Décio Luiz Gazzoni Filho decio at
Thu Jul 28 14:09:52 CEST 2005

On Jul 28, 2005, at 7:08 AM, usenett at wrote:

> Hi,
> i have the following question. I wanted to measure how much cycles an
> initialization, multiplication and so on for some special mpf_t  
> variables
> costs. Paradoxically the first loop needs quantities more cycles  
> than the
> arithmetical average. For the initialization up to 110000 (in  
> average about
> 420), for the multiplication up to 5000 (in average about 160).
> Can anyone explain why this the case?
> Is there ay better way to get the costs of some computation than mine?

What's paradoxical about it? This is exactly what I would expect,  
mostly due to cache effects.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url :

More information about the gmp-discuss mailing list