Standard D, Mir D benchmarks against Numpy (BLAS)
9il
ilyayaroshenko at gmail.com
Sat Mar 14 09:34:55 UTC 2020
On Saturday, 14 March 2020 at 08:01:33 UTC, Jacob Carlborg wrote:
> On 2020-03-12 13:59, Pavel Shkadzko wrote:
>> I have done several benchmarks against Numpy for various 2D
>> matrix operations. The purpose was mere curiosity and spread
>> the word about Mir D library among the office data engineers.
>> Since I am not a D expert, I would be happy if someone could
>> take a second look and double check.
>>
>> https://github.com/tastyminerals/mir_benchmarks
>>
>> Compile and run the project via: dub run --compiler=ldc
>> --build=release
>
> Have you tried to compile with LTO (Link Time Optimization) and
> PGO (Profile Guided Optimization) enabled? You should also link
> with the versions of Phobos and druntime that has been compiled
> with LTO.
The problem is that Numpy uses its own version of OpenBLAS, that
is multithread including Level 1 BLAS operations like L2 norm and
dot product, while D code is a single thread.
More information about the Digitalmars-d
mailing list