Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: perllVm: A Linux test of how Perl and LLVM would work together.

by flexvault (Prior)
on Sep 07, 2012 at 10:40 UTC ( #992277=note: print w/ replies, xml ) Need Help??


in reply to Re: perllVm: A Linux test of how Perl and LLVM would work together.
in thread perllVm: A Linux test of how Perl and LLVM would work together.

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


Comment on Re^2: perllVm: A Linux test of how Perl and LLVM would work together.
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-07-07 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls