Parallel Rogue-like benchmark

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Sat Nov 9 04:05:13 PST 2013


On 07/11/13 14:12, bearophile wrote:
> Very nice. I have made a more idiomatic version (in D global constants don't
> need to be IN_UPPERCASE), I have added few missing immutable annotations, and
> given the benchmark also counts line numbers, I have made the code a little more
> compact (particularly the struct definitions, but I have moves the then branch
> of some if on a new line, increasing the line count to make the code a little
> more readable, so it's not a unnaturally compact D code):
>
> http://dpaste.dzfl.pl/d37ba995

How does the speed of that code change if instead of the Random struct, you use 
std.random.Xorshift32 ... ?



More information about the Digitalmars-d mailing list