leonardo ([info]leonardo_m) wrote,
The code I have shown is all the source code I have used.
To time the source code I have just used (on Ubuntu 8.10):
time java Fact
So I presume it's client.
I have run it 3+ times, but I have seen no much difference in timing from the first to the last run.
Nearly all the running time is spent in the BigInteger.multiply so I presume jitting the main doesn't change results much.
If you have Python and Java installed you can use that code to reproduce (or not reproduce) those timings in 3 minutes, about the time you need to read my answer :-)
Note that I hope to be in some way wrong, because I'd like to use Java too for such purposes.


Advertisement


(Read 7 comments)

Post a comment in response:

From:
Help
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:

 
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…