Naive node.js faster than naive LDC2?

James Lu jamtlu at
Sat Aug 22 16:56:59 UTC 2020

On Saturday, 22 August 2020 at 16:01:52 UTC, H. S. Teoh wrote:
> Sorry, I missed that the first time round.  But how come your 
> struct version uses `real` but your class version uses 
> `double`?  It's well-known that `real` is slow because it uses 
> x87 instructions, as opposed to the SSE/etc. instructions that 
> `double` would use.

On Friday, 21 August 2020 at 23:14:12 UTC, James Lu wrote:
> With the double type:
> Node: 2211 2574 2306
> Dlang: 2520 1891 1676

If you had read all three of my original self-replies9, you would 
have noticed I also did a version with struct + class.

Perhaps I need to learn to keep them all in the same post.

More information about the Digitalmars-d mailing list