Flame bait: D vs. Rust vs. Go Benchmarking
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Thu Jul 25 03:34:55 PDT 2013
On Thursday, 25 July 2013 at 08:13:07 UTC, Joseph Rushton
Wakeling wrote:
> On Wednesday, 24 July 2013 at 11:32:17 UTC, bearophile wrote:
>> Compiling with LDC2 I have found Xorshift about as fast as C
>> rand :-)
>
> Minor point, but it may be worth checking the number of bits
> used in different languages' Xorshifts. For D the default is
> 128. If others use less (or more) they may be faster (or
> slower).
Just checked the code -- the C and Go versions are using 32-bit
Xorshift so it's still not a fair comparison (didn't check for
Rust). Could try with Xorshift32 (or bump the C/C++/Go/Rust
versions to 128-bit).
But before doing that -- has the Xorshift32 bug fix made it to
LDC yet?
Last observation -- could some of the LLVM vs. GCC difference be
down to LLVM backends outputting native as opposed to generic
executables?
More information about the Digitalmars-d
mailing list