math.log() benchmark of first 1 billion int using std.parallelism
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Dec 22 12:02:50 PST 2014
On Monday, 22 December 2014 at 18:23:29 UTC, Iov Gherman wrote:
> On Monday, 22 December 2014 at 18:00:18 UTC, aldanor wrote:
>> On Monday, 22 December 2014 at 17:28:12 UTC, Iov Gherman wrote:
>>> So, I did some more testing with the one processing in
>>> paralel:
>>>
>>> --- dmd:
>>> 4 secs, 977 ms
>>>
>>> --- dmd with flags: -O -release -inline -noboundscheck:
>>> 4 secs, 635 ms
>>>
>>> --- ldc:
>>> 6 secs, 271 ms
>>>
>>> --- gdc:
>>> 10 secs, 439 ms
>>>
>>> I also pushed the new bash scripts to the git repository.
>>
>> import std.math, std.stdio, std.datetime;
>>
>> --> try replacing "std.math" with "core.stdc.math".
>
> Tried it, it is worst:
> 6 secs, 78 ms while the initial one was 4 secs, 977 ms and
> sometimes even better.
Strange... for me, core.stdc.math.log is about twice as fast as
std.math.log.
More information about the Digitalmars-d-learn
mailing list