math.log() benchmark of first 1 billion int using std.parallelism

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 23 04:13:38 PST 2014


On Tuesday, 23 December 2014 at 10:20:04 UTC, Iov Gherman wrote:
>> That's very different to my results.
>>
>> I see no important difference between ldc and dmd when using 
>> std.math, but when using core.stdc.math ldc halves its time 
>> where dmd only manages to get to ~80%
>
> I checked again today and the results are interesting, on my pc 
> I don't see any difference between std.math and core.stdc.math 
> with ldc. Here are the results with all compilers.
>
> - with std.math:
> dmd: 4 secs, 878 ms
> ldc: 5 secs, 650 ms
> gdc: 9 secs, 161 ms
>
> - with core.stdc.math:
> dmd: 5 secs, 991 ms
> ldc: 5 secs, 572 ms
> gdc: 7 secs, 957 ms

Btw. I just noticed small issue with D vs. java, you start 
messure in D before allocation, but in case of Java after 
allocation


More information about the Digitalmars-d-learn mailing list