Hacker News new | ask | show | jobs
by Safety1stClyde 3308 days ago
A program written in C will execute faster if you run it multiple times, and slower if it has not been run recently. Presumably all of the benchmarks consist of many thousands of repetitions of the same process.
1 comments

The difference is not as dramatic as with the JVM.
The difference is not as dramatic with tiny tiny programs that run for more than a few tenths of a second.
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.