Stride in foreach ranges

Paul Jurczak pauljurczak at yahoo.com
Fri Aug 30 10:31:33 PDT 2013


On Friday, 30 August 2013 at 17:19:11 UTC, Paul Jurczak wrote:
> On Friday, 30 August 2013 at 14:11:06 UTC, Namespace wrote:
[..]
>> Can you prove this on DPaste?
>
> It's there at: http://dpaste.dzfl.pl/2cf504db

I'm not sure what are the compiler switches on DPaste and I don't 
see an option to change them, so here are my measurements:

Windows 7 64-bit Core i5 2500 3.4GHz turbo:
DMD 2.063.2 (32-bit): dmd -O -noboundscheck -inline -release
669171001   622ns  e28_0
669171001  1244ns  e28_1

Xubuntu 13.04 64-bit Core i5 3450S 2.8GHz (3.5GHz turbo):
GDC 4.8.1:     gdc -m64 -march=native -fno-bounds-check 
-frename-registers -frelease -O3
669171001  1455ns  e28_0
669171001  1458ns  e28_1

DMD64 2.063.2: dmd -O -noboundscheck -inline -release
669171001  891ns  e28_0
669171001  1572ns  e28_1




More information about the Digitalmars-d-learn mailing list