broot vs brootinv performancs
tg at gmplib.org
Wed Oct 31 14:29:59 CET 2012
nisse at lysator.liu.se (Niels Möller) writes:
Can you tell me an easy way to do that? I'm not sure which operands are
relevant (size, and powers or non-powers), and it seems the speed program
doesn't know about mp?_perfect_power_p at all.
I sometimes write silly little programs when faced with such issues.
Such as (untested):
main (int argc, char **argv)
mpz_init_set_str (a, argv, 0);
for (i = 0; i < 20; i++)
mpn_perfect_power_p (PTR(a), SIZ(a));
t = speed_endtime ();
printf ("%.8f\n", t);
More information about the gmp-devel