I wonder how fast we'd do

KnightMare black80 at bk.ru
Tue May 28 08:33:42 UTC 2019


>> https://run.dlang.io/is/6pjEud

I doubgt about results on my machine:
t1 : 42 ms, 858 ╬╝s, and 7 hnsecs       1.06672e+09
t2 : 42 ms, 647 ╬╝s, and 8 hnsecs       1.06672e+09
t3 : 0 hnsecs   0

// without printing results LDC drops calcs at all
// ldc2 -release -O3 times2.d
writeln("t1 : ", t1 / n, " \t", r1/n );
writeln("t2 : ", t2 / n, " \t", r2/n );
writeln("t3 : ", t3 / n, " \t", r3/n );


offtopic:
123╬╝s better change to 123us (for Windows sure)


More information about the Digitalmars-d mailing list