Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Suffix-prefix matching done right

by Anonymous Monk
on Nov 14, 2021 at 03:02 UTC ( [id://11138800]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ curl -O http://www.textfiles.com/etext/FICTION/lesms10.txt
    
    ...
    # Sorry, I didn't want to go through the trouble clearing OS cache.
    
    $ cat lesms10_big.txt >/dev/null
    
  2. or download this
    $ time wc lesms10_big.txt
     14152200 113528600 652751200 lesms10_big.txt
    ...
    real 0m2.140s
    user 0m2.085s
    sys  0m0.055s
    
  3. or download this
    $ time ./wc.pl lesms10_big.txt
     14152200 113528600 652751200 lesms10_big.txt
    ...
    real 0m0.740s  (2.89x)
    user 0m3.784s
    sys  0m1.166s
    
  4. or download this
    $ time wc -l lesms10_big.txt
     14152200 lesms10_big.txt
    ...
    real 0m0.208s
    user 0m0.678s
    sys  0m0.835s
    
  5. or download this
    $ time wc -w lesms10_big.txt
     113528600 lesms10_big.txt
    ...
    real 0m0.535s
    user 0m3.574s
    sys  0m0.599s
    
  6. or download this
    $ time wc -c lesms10_big.txt
     652751200 lesms10_big.txt
    ...
    real 0m0.054s
    user 0m0.042s
    sys  0m0.010s
    
  7. or download this
    Linux: sudo echo 1 >/proc/sys/vm/drop_caches
    macOS: sudo purge
    ...
    user 0m3.598s
    sys  0m0.736s
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found