How to tune numerical D? (matrix multiplication is faster in g++ vs gdc)

John Colvin john.loughran.colvin at gmail.com
Mon Mar 4 07:17:28 PST 2013


On Monday, 4 March 2013 at 04:15:41 UTC, bearophile wrote:
> John Colvin:
>
>> First things first:
>> You're not just timing the multiplication, you're timing the 
>> memory allocation as well. I suggest using 
>> http://dlang.org/phobos/std_datetime.html#StopWatch to do some 
>> proper timings in D
>
> Nope, what matters is the total program runtime.
>
> Bye,
> bearophile

The performance of the multiplication loops and the performance 
of the allocation are separate issues and should be measured as 
such, especially if one wants to make meaningful optimisations.


More information about the Digitalmars-d mailing list