GMP compared to JAVA

Vincent Lefevre vincent at vinc17.org
Fri Dec 21 13:59:39 CET 2007


On 2007-12-21 10:50:56 +0100, Heiko Stamer wrote:
> On Thu, Dec 20, 2007 at 08:37:54PM -0300, Nustenil Segundo wrote:
> 
> > 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?
> 
> Perhaps the performance of GMP RNG is poor. Have you checked this?

I haven't kept the message with the code, but IIRC, only the power
function was timed.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list