Hacker News new | ask | show | jobs
by igouy 3306 days ago
The difference is not as dramatic with tiny tiny programs that run for more than a few tenths of a second.
1 comments

Oh, yes it is. I've benchmarked code I've written in C++ vs Java before and allowing hotspot to optimise the code makes a huge difference
How "huge" on a 20 second run of nbody 50000000 ?

http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...

The measurement shown is 21.54 secs.

The average JMH shows is 23.367 ± 0.062.