Woeful performance of D compared to C++
Paulo Herrera
pauloh81 at yahoo.ca
Fri Jan 19 00:45:58 PST 2007
Hi,
I've be investigating about performance of different programming
languages/compiler using some micro-benchmarks like the one posted in this
thread. I observed that in many of them library implementations are much
more important than the language itself. Some of my results are posted here
http://pauloherrera.blogspot.com/ .
In the case of random number generators the performance difference among
different implementations/algorithms in the same language can be orders of
magnitude.
I don't know why all libraries do not implement the Mersenne-Twister
algorithm that is considered as the fastest and highest quality (most
random).
Paulo
Walter Bright wrote:
> Dave wrote:
>>
>> D's rand() is slow.
>
> True. C's rand() is fast, but is known to be not very random. As you
> pointed out, D users can use either as required.
More information about the Digitalmars-d
mailing list