www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 180] New: DMD -O is faster than GDC -O3 for byte and short math

Date: Mon, 20 Apr 2015 23:08:59 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"


            Bug ID: 180
           Summary: DMD -O is faster than GDC -O3 for byte and short math
           Product: GDC
           Version: development
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ketmar ketmar.no-ip.org

Created attachment 84
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=84&action=edit
test case

using the attached test code, i got this results:

for: dmd -O -inline -release
  tByte: 0.004,872 secs
 tShort: 0.006,896 secs
   tInt: 0.008,672 secs
  tLong: 0.036,864 secs

for: gdc -march=native -O3 -frelease
  tByte: 0.008,830 secs
 tShort: 0.008,858 secs
   tInt: 0.008,267 secs
  tLong: 0.014,029 secs

seems that DMD does better with bytes and shorts, while gdc has the same speed
for bytes, shorts and ints.

You are receiving this mail because:
You are watching all bug changes.
Apr 20 2015