Simple performance question from a newcomer

ZombineDev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 21 08:40:32 PST 2016


On Sunday, 21 February 2016 at 16:36:22 UTC, ZombineDev wrote:
> On Sunday, 21 February 2016 at 16:29:26 UTC, ZombineDev wrote:
>> ...
>> And if I use the Kahan algorithm:
>> 106 ms
>> 36 ms
>> 31 ms
>> The second two results are probably larger due to noise.
>
> I did some more testing and clearly the larger times for N=1000 
> were just noise:
> [LDC Kahan N=1000]
> 106 ms
> 36 ms
> 31 ms
>
> 59 ms
> 24 ms
> 22 ms
>
> ...

Just for the record, with `DMD -release -O -inline`, Kahan, 
N=1000 I get:
325 ms
217 ms
165 ms

231 ms
117 ms
58 ms

131 ms
109 ms
58 ms

131 ms
109 ms
57 ms

131 ms
112 ms
57 ms

125 ms
106 ms
55 ms

125 ms
104 ms
55 ms

125 ms
105 ms
55 ms

125 ms
104 ms
55 ms

230 ms
115 ms
58 ms

131 ms
112 ms
58 ms

131 ms
109 ms
57 ms


More information about the Digitalmars-d-learn mailing list