Standard D, Mir D benchmarks against Numpy (BLAS)
Pavel Shkadzko
p.shkadzko at gmail.com
Sun Mar 15 12:13:39 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.
If for LTO the dub.json dflags-ldc: ["-flto=full"] is enough then
it doesn't improve anything.
For PGO, I am a bit confused how to use it with dub --
dflags-ldc: ["-O3"]? It compiles but I see no difference. By
default, ldc2 should be using O2 -- good optimizations.
More information about the Digitalmars-d
mailing list