Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Benchmarks aren't everything (rewritten regex is 290% faster than original)

by demerphq (Chancellor)
on Oct 25, 2005 at 08:16 UTC ( #502645=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark qw(cmpthese timethese);
    $rex1=qr!
    ...
    *** PUT SOME HTML/XML HERE ***
    EOFTEXT
    }
    
  2. or download this
    Benchmark: running rex1, rex2 for at least 1 CPU seconds...
          rex1:  1 wallclock secs ( 1.16 usr +  0.00 sys =  1.16 CPU) @ 51
    +.04/s (n=59)
    ...
    rex1 50.6/s 290%   --
    6291
    6291
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://502645]
help
Chatterbox?
erix looks for a red-herring joke but can't find one
Discipulus has worked physically and he rediscovered he is no more wont..
erix instead casts a baleful eye on another mysql q.
[Corion]: erix: I'm not sure if it really is MySQL - maybe MS SQL also has LIMIT 0
[erix]: it has TOP, IIRC
[Corion]: erix: Ah. I use where 1 = 0 for queries where I only am interested in the structure ;)
[erix]: 1=0 is as short as TOP :)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-01-23 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (192 votes). Check out past polls.