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

via D.gnu d.gnu at puremagic.com
Mon Apr 20 15:08:59 PDT 2015


http://bugzilla.gdcproject.org/show_bug.cgi?id=180

            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 at gdcproject.org
          Reporter: ketmar at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20150420/5334e929/attachment.html>


More information about the D.gnu mailing list