Perlin noise benchmark speed

MrSmith via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 20 06:18:59 PDT 2014


On Friday, 20 June 2014 at 12:56:46 UTC, David Nadlinger wrote:
> On Friday, 20 June 2014 at 12:34:55 UTC, Nick Treleaven wrote:
>> On 20/06/2014 13:32, Nick Treleaven wrote:
>>> It apparently shows the 3 main D compilers producing slower 
>>> code than
>>> Go, Rust, gcc, clang, Nimrod:
>>
>> Also, it does appear to be using the correct compiler flags 
>> (at least for dmd):
>> https://github.com/nsf/pnoise/blob/master/compile.bash
>
> -release is missing, although that probably isn't playing a big 
> role here.
>
> Another minor issues is that Noise2DContext isn't final, making 
> the calls to get virtual.
>
> This should cause such a big difference though. Hopefully 
> somebody can investigate this more closely.
>
> David

struct can be used instead of class


More information about the Digitalmars-d mailing list