DMD 1.034 and 2.018 releases
Don
nospam at nospam.com.au
Sun Aug 10 23:57:37 PDT 2008
dsimcha wrote:
> == Quote from bearophile (bearophileHUGS at lycos.com)'s article
>> First benchmark, just D against itself, not used GCC yet, the results show that
> vector ops are generally slower, but maybe there's some bug/problem in my
> benchmark (note it needs just Phobos!), not tested on Linux yet:
>
> I see at least part of the problem. When you use such huge arrays, it ends up
> being more a test of your memory bandwidth than of the vector ops. Three arrays
> of 80000 ints comes to a total of about 960k. This is not going to fit in any L1
> cache for a long time.
Yes. The solution to that is to check for huge array sizes, and use a
different routine (using prefetching) in that case. Actually, the most
important routine to be doing that is memcpy/ array slice assignment,
but I'm not sure it does. I think it just does a movsd.
So I think this is still a useful case to benchmark, it's not the most
important one, though.
More information about the Digitalmars-d-announce
mailing list