Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 having an uproarious good time at the Monastery: (4)
As of 2022-05-28 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?