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

(tye)Re: one-liner hogs

by tye (Cardinal)
on Feb 01, 2001 at 04:16 UTC ( #55609=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Memory: perl -e 'push @_,"x"x1024 while 1'
    CPU:    perl -e '$_++ while 1'
    ...
    Reads:  perl -MFile::Find -e'find(sub{@ARGV=$_;1while<>},"/")while 1'
    MemUse: perl -e '$_="ab"x(8*1024*1024);tr/ab/ba/ while 1'
    Swap:   perl -e 'while(1){push @_,"x";for(@_){$_="x$_"}}'
    
  2. or download this
    perl -MFile::Find -e 'fork;fork;find(sub{@ARGV=$_;1while<>},"/")while 
    +1'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-04-19 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls