std.math performance (SSE vs. real)

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 27 03:50:24 PDT 2014


On Friday, 27 June 2014 at 09:37:54 UTC, hane wrote:
> Nice! I tested with the Perlin noise benchmark, and it got 
> faster(in my environment, 1.030s -> 0.848s).
> But floor still consumes almost half of the execution time.

Oh, and by the way, my optimized version (simply replace floor() 
in perlin_noise.d with a call to llvm_floor() from 
ldc.intrinsics) is 2.8x faster than the original one on my 
machine (both with -mcpu=native).

David


More information about the Digitalmars-d mailing list