Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

(Ovid - benchmarking a bare regex) RE: Odd...

by Ovid (Cardinal)
on Sep 20, 2000 at 00:23 UTC ( #33195=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    print "Good\n" if $test =~ ab;
  2. or download this
    #!/usr/bin/perl -w
    use strict;
        bare      => '$test = "aba"; $test =~ ab',
        delimited => '$test = "aba"; $test =~ /ab/'
  3. or download this
    Unquoted string "ab" may clash with future reserved word at (eval 1) l
    +ine 1.
  4. or download this
    Benchmark: running bare, delimited, each for at least 15 CPU seconds..
          bare: 13 wallclock secs (15.01 usr +  0.00 sys = 15.01 CPU) @ 45
    +7834.84/s (n=6872101)
     delimited: 16 wallclock secs (15.00 usr +  0.00 sys = 15.00 CPU) @ 45
    +8124.53/s (n=6871868)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-01-29 11:17 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (74 votes). Check out past polls.