Programming language benchmarks

Robert Clipsham robert at octarineparrot.com
Thu Apr 28 04:43:46 PDT 2011


On 28/04/2011 12:37, Alexander wrote:
> On 28.04.2011 13:24, Robert Clipsham wrote:
>
>> I also notice lots of nested for loops in some of the tests, which should be using slice operations really.
>
>    This is the whole point of benchmarking, IMHO - to see how good compiler/optimizer (and VM, if any) are - for (almost) same code, same algorithm.
>
>    I recall that once I was very surprised that gcc recognized expression ( ((X)<<  n) | ((X)>>  (32 - n)) ) as "rotate left" and used single instruction for this. I wish DMD would do the same ;)
>
> /Alexander

Regardless, gdc should be roughly inline with gcc for benchmarks, given 
that it uses the same backend. Pretty sure there have been some big 
improvements optimization wise since 0.24.

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d mailing list