On Friday, 30 May 2014 at 13:35:59 UTC, Thomas wrote:
return (format("%s %f","plus\nLast: ", sum) );
I haven't actually run this but my guess is that the format function is the slowish thing here. Did you create a new string in the C version too?
gdc ./source/perf/testperf.d -frelease -o testperf
The -O3 switch might help too, which turns on optimizations.