| leonardo ( |
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.
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.