Why is std.math slower than the C baseline?

Timon Gehr timon.gehr at gmx.ch
Mon Jun 8 18:13:20 UTC 2020


On 08.06.20 05:05, data pulverizer wrote:
> On Thursday, 4 June 2020 at 14:14:22 UTC, Andrei Alexandrescu wrote:
>> D should just use the C functions when they offer better speed.
>>
>> https://www.reddit.com/r/programming/comments/gvuy59/a_look_at_chapel_d_and_julia_using_kernel_matrix/fsr4w5o/ 
>>
> 
> If it's any help or informative I explicitly benchmark a selection of 
> mathematics functions from `std.math`, `core.stdc.math`, and 
> `LDC_intrinsic` here: 
> https://github.com/dataPulverizer/DMathBench/blob/master/report.md

 > many important processes rely on their performance and accuracy.

This is true, but you only measured performance, not accuracy.


More information about the Digitalmars-d mailing list