Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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

by flexvault (Monsignor)
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.


Sometimes the best way is an example:

time perllvm -sw 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.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992277]
[ambrus]: GotToBTru: wait, you tell only the atom totals of what you want? Is that like ordering food in a restaurant by telling only the nutrient amounts you need, or
[ambrus]: like when a medieval scientist supposedly proves his priority inventing something by having previously published an anagram of a thousand letters long summary of the invention?
[choroba]: Progress! Nowadays, you can write a Perl script to generate such an anagram!
[GotToBTru]: i like to order my chemicals a-la-carte ambrus ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-12-06 13:04 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (104 votes). Check out past polls.