Standard D, Mir D benchmarks against Numpy (BLAS)

bachmeier no at spam.net
Fri Mar 13 01:03:55 UTC 2020


On Thursday, 12 March 2020 at 20:39:59 UTC, p.shkadzko wrote:

> I am actually intrigued with the timings of huge matrices. Why 
> Mir D and Standard D are so much better than NumPy? Once we get 
> to 500x600, 1000x1000 sizes there is a huge drop in performance 
> for NumPy and not so much for D. You mentioned L3 cache but CPU 
> architecture is equal for all the benchmarks so what's going on?

Been quite a while since I worked with numpy, but I think that's 
where you're hitting memory limits (easier to do with Python than 
with D) and it causes performance to deteriorate quickly. I had 
those problems with R, and I believe it's relatively easy to hit 
that constraint with numpy as well, but you definitely want to 
find a numpy expert to confirm - something I definitely am not.


More information about the Digitalmars-d mailing list