Performance of tables slower than built in?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Thu May 23 19:17:40 UTC 2019
On Wednesday, 22 May 2019 at 00:22:09 UTC, JS wrote:
> xxx = 0;
> sw.reset();
> sw.start();
> for(double i = 0; i < 10000000; i++) xxx += sin(PI*i);
> t = sw.peek().msecs;
> writeln(t);
> sw.stop();
> }
What you are doing wrong is that xxx is never used... So DMD
removes it altogether?
If you add writeln(xxx) after the second loop as well, then maybe
the measurements make more sense?
Ola.
More information about the Digitalmars-d-learn
mailing list