3 ms·
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
by Safety1stClyde 9y 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.
- azinman2 9y agoThe difference is not as dramatic as with the JVM.
- igouy 9y agoThe difference is not as dramatic with tiny tiny programs that run for more than a few tenths of a second.
- peterashford 9y agoOh, 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
- deleted 9y ago[deleted]
- igouy 9y agoHow "huge" on a 20 second run of nbody 50000000 ? http://benchmarksgame.alioth.debian.org/u64q/program.php?test=nbody&lang=java&id=4 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.