Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: simply appending to a scalar...

by Hue-Bond (Priest)
on Jun 25, 2006 at 13:40 UTC ( [id://557430]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark qw/cmpthese/;
    my $append = 'B' x 50;
    cmpthese (100, {
    ...
    substr 16.5/s     --   -35%   -37%
    dot    25.5/s    55%     --    -2%
    dot_eq 26.0/s    58%     2%     --
    
  2. or download this
    use Benchmark qw/cmpthese/;
    my $append = 'B' x 256;
    cmpthese (100, {
    ...
    substr 6.99/s     --   -35%   -49%
    dot_eq 10.7/s    53%     --   -21%
    dot    13.6/s    95%    27%     --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-16 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found