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

Performance of hash and array inserts

by bliako (Monsignor)
on Sep 29, 2021 at 11:45 UTC ( #11137110=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    10000 array insertions took 1.00004911422729 seconds.
    11000 array insertions took 1.09900379180908 seconds.
    ...
    Hash inserts:
    Y = 0.000215204607047044 * X + -0.176900404356259 with error 0.0075377
    +646200501
    Y : total time to insert X elements.
    
  2. or download this
      7 +-----------------------------------------------------------------
    +-----+   
        |                 +                 +                +            
    +     |   
    ...
      1 +-----------------------------------------------------------------
    +-----+   
      10000             15000             20000            25000          
    +   30000 
                                       number of items
    
  3. or download this
    use strict;
    use warnings;
    ...
        $error = sqrt($error) / $num_observations;
        return { A => $A, B => $B, E => $error }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://11137110]
Approved by choroba
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2023-09-22 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?