GMP compared to JAVA

Nustenil Segundo nustenilsegundo at gmail.com
Sat Dec 22 17:01:27 CET 2007


(a) and (b) can be true, but (c) is false.

2007/12/21, Paul Zimmermann <Paul.Zimmermann at loria.fr>:
> > I did a aplication with GMP and other same in JAVA.
> > This aplication calculates the value of the operation a^b mod m, for
> > a, b and m randomical numbers of n bits, n in interval [5, 25000).
> > [...]
> > For the result in C with n = 10005 bits the time was 2800 ms (a example).
> >
> > For the result in JAVA with n = 10005 bits the time was 10 ms (a example).
> >
> > Why this difference?
>
> I see three possible explanations:
>
> (a) JAVA is much more efficient than GMP
> (b) your computer is very efficient for JAVA applications
> (c) your JAVA exponent (q) has much less than 10005 bits
>
> Paul Zimmermann
>


More information about the gmp-discuss mailing list