Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: Regexp Legibility

by patrickhaller (Initiate)
on Jun 21, 2009 at 16:33 UTC ( #773383=note: print w/replies, xml ) Need Help??

in reply to Re: Regexp Legibility
in thread Regexp do's and don'ts

Looks like eval runs faster...
Rate as usual with do as usual 63091/s -- -29% with do 88496/s 40% -- Rate with eval as usual with eval 59773/s -- -9% as usual 65359/s 9% --

Replies are listed 'Best First'.
Re^3: Regexp Legibility
by linuxer (Curate) on Jun 21, 2009 at 16:47 UTC

    No, it doesn't look like that.

    In one run "with do" was 40% faster than "as usual", while in the second run, "with eval" iswas 9% slower than "as usual".

    The "Rate" shows you how many times the specific routine could be run per time unit, so in this case, runs per second.

    What makes you think, that the eval-solution runs faster? ;)

    BTW, you can do comparisons with more than two subroutines. So you can do one run and compare all three (or more) routines.

Re^3: Regexp Legibility
by Anonymous Monk on Jun 21, 2009 at 16:45 UTC
    Please show your benchmark code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://773383]
[karlgoethebier]: shmem: Vielleicht hat er in den Bollerwagen gebrochen?
[karlgoethebier]: shmem:Ach so. Bollerwagen ist eigentlich was für Kinder. Bei uns fahren sie mit Traktoren und Feuerwehrwagen rum...
[shmem]: karlgoethebier: here abouts people are sitting in big tents, gulp beer and ingest badly scorched chicken and sausages while (not) listening to afwul musik
[shmem]: *awful
[choroba]: panem et circenses

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-05-25 12:42 GMT
Find Nodes?
    Voting Booth?