measure costs of computation on mpf t-variables
Décio Luiz Gazzoni Filho
decio at decpp.net
Thu Jul 28 14:09:52 CEST 2005
On Jul 28, 2005, at 7:08 AM, usenett at gmx.de 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.
Décio
-------------- 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 : http://gmplib.org/list-archives/gmp-discuss/attachments/20050728/51d65f6a/PGP.bin
More information about the gmp-discuss
mailing list