Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: "switch$ia" (Russ: Useless Benchmarking again)

by Russ (Deacon)
on Oct 10, 2001 at 21:16 UTC ( [id://118056]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark;
    
    ...
      interp => sub {my $R = 1; my $S = "Test${R}a"},
      append => sub {my $R = 1; my $S = 'Test' . $R . 'a'}
    });
    
  2. or download this
    Benchmark: timing 1000000 iterations of interp, manual...
      interp:  4 wallclock secs ( 3.68 usr +  0.05 sys =  3.73 CPU) @ 2680
    +96.51/s
      manual:  3 wallclock secs ( 3.79 usr + -0.13 sys =  3.66 CPU) @ 2732
    +24.04/s
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found