Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Unit testing OS rich code

by BrowserUk (Pope)
on Oct 13, 2011 at 13:34 UTC ( #931237=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Unit testing OS rich code
in thread Unit testing OS rich code

the quickest easiest way to create an empty file.

Quickest? Definitely not. Easiest? Your call :)

cmpthese 1, { a=>q[ qx[ touch junka.$_ ] for 1 .. 1000 ], b=>q[ do{ open my $f, ">junkb.$_" } for 1 .. 1000 ], };; s/iter a b a 8.83 -- -95% b 0.421 1997% --

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^3: Unit testing OS rich code
Download Code
Replies are listed 'Best First'.
Re^4: Unit testing OS rich code
by Voronich (Hermit) on Oct 13, 2011 at 14:00 UTC

    Certainly quickest for the programmer. This has to create 5 sentinel files every 3 months.

    Love that profiling snippet. Gonna have to pull that for meeting arguments ;)

    Me

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (16)
As of 2015-07-30 15:27 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 (272 votes), past polls