BrowserUk,

I have regenerated 'perllvm' a couple of times, the most recent with '-O3' for the compiler flags, and it seems to be about 15% faster on your code. I put a 'for (0..8)' around the actual calls, and it seems that improvement gets better for the first 4 iterations, but don't know if 'jit' is working or not. '-O3' had no effect for my testcase, but I think the I/O wouldn't change much.

perllvm -sw BrowserUK_991333.pl 3 9 4093 Took: 13.2621982097626 4093 Took: 12.8998439311981 4093 Took: 12.8468470573425 4093 Took: 12.8413920307159 4093 Took: 12.8571419715881 4093 Took: 12.8411600494385 4093 Took: 12.850515127182 4093 Took: 12.8421239757538 4093 Took: 12.8547790050507

When I ran with the 'gcc' Perl there wasn't any major changes for each loop. I think 15% shouldn't be ignored by just compiling with 'clang' and '-O3'. I joined the LLVM developers list, and hope they are patient :-)

Regards...Ed

"Well done is better than well said." - Benjamin Franklin


In reply to Re^2: perllVm: A Linux test of how Perl and LLVM would work together. by flexvault
in thread perllVm: A Linux test of how Perl and LLVM would work together. by flexvault

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.