BrowserUk,

Sometimes the best way is an example:

time perllvm -sw BrowserUK_991333.pl 3 9 4093 Took: 14.9486489295959 real 0m15.143s user 0m14.981s sys 0m0.164s

To execute your test-case, 'real' should also include the time to load and execute the LLVM Perl ( perllvm ) as well as the compile time of the script and then the execution and any wait time and exit. So 'real' is all inclusive, It's a easy way to find the total time of any *nix command. 'user' is the time perllvm was executing and 'sys' is the time that system resources ( including loading and executing ) was used.
Note: In pseudo Perl ( untested )

'real' >= 'user' + 'sys'; # approximately :-)

Your test-case was cpu intensive, while my test-case did a lot of I/O. ( 1_000_000 random writes, 1_000_000 reads forward, and 1_000_000 reads backward ). But as you can see, it still was cpu intensive.

time perllvm -E '$in = <>;' real 0m5.609s user 0m0.008s sys 0m0.004s
With this I just counted to 5 and hit return. In this case, 'real' is wall clock time.

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.