Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Keep It Simple, Stupid
 
PerlMonks  

Re^3: shell vs. filehandler

by fauria (Deacon)
on Feb 11, 2005 at 02:18 UTC ( [id://430010]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: shell vs. filehandler
in thread shell vs. filehandler

Hi. Due to the small number of instructions executed, both scripts are too small for a trustable benchmark.

real measures how much time the program took to execute, user how much time took in user mode, and sys, how much in kernel mode.

Notice that your system may be busy, so there may be many processes changing their context.

This (which is part of the so called system entropy) may vary in a very short time, and as your scripts runs also for a very short period of time, entropy may affect them in different ways.

This may cause the fastest script to appear as the lowest.

Try to rewrite them opening a reasonable ammount of files, so you can compare times of execution more accurately.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430010]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.