On Monday, 8 December 2014 at 12:09:20 UTC, Kagamin wrote:
On Monday, 8 December 2014 at 10:31:46 UTC, John Colvin wrote:
After changing the benchmark to more carefully measure the
integration function (ldc was unfairly taking advantage of
knowing a and b at compile-time), scala does indeed win by a
small margin.
I wonder what it's managing to achieve here? AFAICT there
really isn't much scope for optimisation in that while loop
without breaking IEEE-754 guarantees.
Maybe scala takes the same advantage?
Perhaps it did, but the technique used to force ldc not to
(randomly generating `a` on entry to timeIt) should also apply to
scala.